shadcn token

shadcn Orange in OKLCH

Quick answer: shadcn Orange is #F97316, which converts to oklch(0.705 0.187 47.60). On white, it has a WCAG contrast ratio of 2.80:1 and an APCA score of Lc +53.16.

This falls below the WCAG 2.2 AA Large text threshold (3:1) on white; pair with a darker foreground. The OKLCH base colors used here are available in shadcn/ui since the Tailwind v4 update (February 2025), with 92% global browser support for OKLCH notation (caniuse, April 2026).

oklch(0.705 0.187 47.60)

shadcn Orange is a shadcn theme token. This page frames #F97316 as a theme token: paste the :root and .dark blocks below to theme every component at once.

  • Specs

    oklch(0.705 0.187 47.60)
    #F97316

    Highest contrast: black

    7.49:1
    Normal AAmeets WCAG 2.2
    Normal AAAmeets WCAG 2.2
    Large AAmeets WCAG 2.2
    Large AAAmeets WCAG 2.2
    Lc -48.69
  • Accessibility lens

    • Base#F97316
    • 300#FFA46E
    • 500#F97316
    • 700#9F3400

    Toggle a lens to preview this color under color vision differences.

How does shadcn Orange go from primitive to component?

  1. Primitive
  2. Semantic
  3. Component

Primitive

The raw value, before it means anything.

hex
#F97316
oklch
oklch(0.705 0.187 47.60)

Semantic

Bound to a role token that UI reads by name.

--primary: #F97316

One primitive feeds the role. --primary then drives --ring and the hover and active states below, so a single value stays in sync everywhere.

Component

Applied to real UI across states.

AAA7.49:1
DefaultSave paletteNew
HoverSave paletteNew
ActiveSave paletteNew
DisabledSave paletteNew

On-color text: black (7.49:1 on #F97316).

How does shadcn Orange scale from 50 to 950?

shadcn Orange
50 to 950
#FFEEE0
#FFD7BF
#FFBE97
#FFA46E
#FF8A46
#F97316
#CD5100
#9F3400
#6F1C00
#440500
#1C0000
  • 50oklch(0.959 0.026 62.01)
  • 100oklch(0.907 0.055 52.75)
  • 200oklch(0.852 0.091 52.08)
  • 300oklch(0.799 0.129 50.74)
  • 400oklch(0.751 0.163 48.39)
  • 500oklch(0.705 0.187 47.60)
  • 600oklch(0.591 0.173 43.71)
  • 700oklch(0.478 0.151 39.71)
  • 800oklch(0.361 0.121 36.86)
  • 900oklch(0.248 0.094 31.90)
  • 950oklch(0.142 0.058 29.23)

How does shadcn Orange score on WCAG 2.2 contrast?

Every fg × bg combination, with WCAG 2.2 verdicts.

AAA (7:1+)
AA (4.5:1+)
Below AA (under 4.5:1)
Select a pair for ratio and APCA Lc

Does shadcn Orange pass WCAG 2.2 on common neutral backgrounds?

  • Aa2.80Below AA

    White #FFFFFF

  • Aa2.57Below AA

    Neutral 100 #F5F5F5

  • Aa2.22Below AA

    Neutral 200 #E5E5E5

  • Aa1.11Below AA

    Neutral 400 #A3A3A3

  • Aa2.78Below AA

    Neutral 600 #525252

  • Aa6.39AA

    Neutral 900 #171717

  • Aa7.49AAA

    Black #000000

What palettes pair with shadcn Orange?

  • Analogous

    • #F91676
    • #F91618
    • #F97316
    • #F9D216
    • #C2F916
  • Complementary

    • #FBA061
    • #F97316
  • Triadic

    • #F97316
    • #AF4A04
    • #16F973

Where should you use shadcn Orange in production UI?

bars: primary-600 vs secondary-700
Monthly revenue
$48,219
text: neutral-900
+12.4%accent-50 / accent-700
This period Last period
JanFebMarAprMayJun
bg: primary-500 · fg: black
Step 2 of 3
Export your first design system this week.
Continue black / primary-500Skip for now
bg: accent-50 · fg: accent-700
3 tokens changed
Review them before your next export.
Review changes
avatars: solid fills · tags: tints
Team
MOprimary-500 / blackJLsecondary-500 / blackARaccent-700 / white+3neutral-700 / white
Newprimary-500 / blackLiveaccent-50 / accent-700In reviewsecondary-50 / secondary-700Draftneutral-50 / neutral-700
focus: primary-600 · border: neutral-500
Project name
Paletta web
border: primary-600 · ring: primary-100
Used in exported token names.
primary-600 / blackInclude dark mode
Add high contrast theme
Create projectprimary-500 / blackCancel
active tab: primary-700 · rules: neutral-100
All projectsSharedArchived
ProjectStatus
Marketing site
Updated 2h ago
Liveaccent-50 / accent-700
Mobile app
Updated yesterday
In reviewsecondary-50 / secondary-700
Docs
Updated 3d ago
Draftneutral-50 / neutral-700
toggle: primary-600 · progress: secondary-700
Notifications
Weekly digestprimary-600 / card
Product updatesneutral-500
Token quota640 of 1,000
secondary-700 on neutral-50
bg: neutral-900
--primary#F97316
--secondary#D7C938
--accent#D73846
--neutral#877E78
line: accent-500
Active users
12,480
+8.1% this weektext: accent-600
icon: secondary-500 · action: primary-700secondary-500 / black
Palette exported
tokens.css is ready to use.
Undo

Notes on shadcn Orange

Orange as a shadcn base is a high-energy accent, oklch(0.705 0.187 47.6), the color for calls to action, warnings, and bright empty states. Like most warm mid-tones it cannot hold small text on white, sitting Below AA (2.8:1, APCA Lc +53.16), so #F97316 should be a fill or a large graphic rather than body copy on a light page. On a near-black surface it turns strong, WCAG 2.2 AAA (7.49:1, APCA Lc -48.69), so dark mode and dark panels are its home. For range, the analogous set climbs from red #F91618 to yellow #F9D216, a natural warm gradient, and the triad reaches a mint #16F973. Cool slate chrome keeps it from reading like a traffic cone. The accessibility lens is the real constraint: under protanopia and deuteranopia orange slides toward yellow-green (#C7D132), close to where greens land, so an orange-and-green pairing can merge. Separate warning from success with icons and words, not warmth alone.

shadcn :root block

/* Generated by Paletta. Contrast checked against WCAG 2.2 AA.
 * 3 pairs are below AA; adjust them in Paletta before you use this file:
 *   - primary on background (Light): 2.62:1, needs 3:1
 *   - primary on card (Light): 2.80:1, needs 3:1
 *   - ring on background (Light): 2.62:1, needs 3:1
 */

:root {
  --background: 0 6.7% 97.1%;
  --foreground: 20 5.9% 10%;
  --card: 0 0% 100%;
  --card-foreground: 20 5.9% 10%;
  --popover: 0 0% 100%;
  --popover-foreground: 20 5.9% 10%;
  --primary: 24.6 95% 53.1%;
  --primary-foreground: 20 5.9% 10%;
  --secondary: 0 2.7% 92.7%;
  --secondary-foreground: 20 5.9% 10%;
  --muted: 0 2.7% 92.7%;
  --muted-foreground: 25 6.2% 38%;
  --accent: 3.3 100% 89.2%;
  --accent-foreground: 20 5.9% 10%;
  --destructive: 0 72.2% 50.6%;
  --destructive-foreground: 0 6.7% 97.1%;
  --border: 20 4.9% 88%;
  --input: 24 5.9% 50%;
  --ring: 24.6 95% 53.1%;
  --radius: 0.5rem;
}

.dark {
  --background: 30 6.7% 5.9%;
  --foreground: 0 6.7% 97.1%;
  --card: 20 5.9% 10%;
  --card-foreground: 0 6.7% 97.1%;
  --popover: 20 5.9% 10%;
  --popover-foreground: 0 6.7% 97.1%;
  --primary: 24.6 95% 53.1%;
  --primary-foreground: 0 0% 0%;
  --secondary: 30 2.3% 17.3%;
  --secondary-foreground: 0 6.7% 97.1%;
  --muted: 30 2.3% 17.3%;
  --muted-foreground: 24 7% 58.2%;
  --accent: 351.7 100% 19.8%;
  --accent-foreground: 0 6.7% 97.1%;
  --destructive: 3.6 84.7% 61.6%;
  --destructive-foreground: 30 6.7% 5.9%;
  --border: 20 6.5% 18%;
  --input: 25 6.2% 38%;
  --ring: 24.6 95% 53.1%;
  --radius: 0.5rem;
}

How do you export shadcn Orange as design tokens?

Export a W3C DTCG token document for the shadcn Orange 50 to 950 scale, ready for Style Dictionary or any DTCG aware pipeline.

FAQ

Frequently asked questions

shadcn Orange (#F97316) is oklch(0.705 0.187 47.6) in the OKLCH color space.

shadcn Orange passes WCAG 2.2 AA on black for normal text. Contrast ratios: 2.8:1 on white, 7.49:1 on black.

On white, shadcn Orange has an APCA Lc of 53.2. On black, Lc is -48.7. APCA is a perceptual contrast model, not a WCAG compliance standard.

Paste the snippet above into your globals.css (with :root and .dark blocks).

Under deuteranopia (most common, around 5 percent of men), shadcn Orange simulates to #c7d132. Under protanopia it shifts to #bfbe2d. Under tritanopia it appears as #f23e42. Always pair color with shape, label, or icon for accessibility.

Ready to build your color system?

Free forever, no credit card, Pro when you need more.

Built by a product designer who ships to code.