#FFD97F#FFD97F

#FFD97F is a very light, moderate orange. Relative luminance 0.724; OKLCH L 89.9% C 0.117 H 87.1°. Best body text is #000000 at 15.48:1 contrast (WCAG AA passes).

Color values

HEX#FFD97F
RGBrgb(255, 217, 127)
HSLhsl(42, 100%, 75%)
HSVhsv(42, 50%, 100%)
CMYKcmyk(0%, 14.9%, 50.2%, 0%)
CIE-LABlab(88.17, 2.28, 48.93)
CIE-LCHlch(88.17, 48.98, 87.34°)
OKLaboklab(89.89% 0.0058 0.117)
OKLCHoklch(89.89% 0.117 87.1)
XYZxyz(69.8863, 72.4215, 30.3722)
Luminance0.7242 (WCAG relative)
Temperaturewarm
Familyorange

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFD97F #7FA5FF
analogous
#FF997F #FFD97F #E5FF7F
triadic
#FFD97F #7FFFD9 #D97FFF
tetradic
#FFD97F #7FFF99 #7FA5FF #FF7FE5
square
#FFD97F #7FFF99 #7FA5FF #FF7FE5
split-complementary
#FFD97F #7FE5FF #997FFF
monochromatic
#FFB505 #FFC742 #FFD97F #FFEBBC #FFF6E0

Accessibility & contrast

On white

1.36
#FFD97F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.48
#FFD97F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFD97F
15.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFD97F#FFFFFF#000000##000000
##FFD97F1.001.3615.4815.48
#FFFFFF1.361.0021.0021.00
#00000015.4821.001.001.00
##00000015.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#ECD777
Deuteranopia (green-blind)
#F5E282
Tritanopia (blue-blind)
#FFCBC4
Achromatopsia (no color)
#DDDDDD

Design tokens & code

CSS
--color: #ffd97f;
/* rgb */ color: rgb(255, 217, 127);
/* oklch */ color: oklch(89.9% 0.117 87.1);
Tailwind
colors: {
  custom: {
    50: '#ffe4a6',
    500: '#ffd97f',
    950: '#000000',
  },
}
SCSS
$custom: #ffd97f;
$custom-light: #ffe4a6;
$custom-dark: #000000;
JSON
{
  "hex": "#ffd97f",
  "rgb": {
    "r": 255,
    "g": 217,
    "b": 127
  },
  "hsl": {
    "h": 42.188,
    "s": 100,
    "l": 74.902
  },
  "oklch": {
    "l": 0.89894,
    "c": 0.1171,
    "h": 87.1
  },
  "luminance": 0.72418
}

Semantic roles & 50–950 ramp

primary
#FFD97F
secondary
#4472DE
accent
#44E600
background
#FFFEFC
surface
#FFFCF6
border
#D7D5D0
text
#18150F
muted
#868480

Preview Lab

Preview with #FFD97F

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#FFD97F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva