#F0D97B#F0D97B

#F0D97B is a very light, moderate yellow. Relative luminance 0.696; OKLCH L 88.5% C 0.117 H 96.0°. Best body text is #000000 at 14.92:1 contrast (WCAG AA passes).

Color values

HEX#F0D97B
RGBrgb(240, 217, 123)
HSLhsl(48, 80%, 71%)
HSVhsv(48, 49%, 94%)
CMYKcmyk(0%, 9.6%, 48.7%, 5.9%)
CIE-LABlab(86.79, -4.08, 48.88)
CIE-LCHlch(86.79, 49.05, 94.78°)
OKLaboklab(88.48% -0.0122 0.1168)
OKLCHoklch(88.48% 0.117 96)
XYZxyz(64.3252, 69.5836, 28.7777)
Luminance0.6958 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0D97B #7B92F0
analogous
#F09E7B #F0D97B #CCF07B
triadic
#F0D97B #7BF0D9 #D97BF0
tetradic
#F0D97B #7BF09E #7B92F0 #F07BCC
square
#F0D97B #7BF09E #7B92F0 #F07BCC
split-complementary
#F0D97B #7BCCF0 #9E7BF0
monochromatic
#D8B219 #EAC944 #F0D97B #F6E9B2 #FCF7E4

Accessibility & contrast

On white

1.41
#F0D97B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.92
#F0D97B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0D97B
14.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0D97B#FFFFFF#000000##000000
##F0D97B1.001.4114.9214.92
#FFFFFF1.411.0021.0021.00
#00000014.9221.001.001.00
##00000014.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#EAD573
Deuteranopia (green-blind)
#F0DD7F
Tritanopia (blue-blind)
#FFCCC3
Achromatopsia (no color)
#D9D9D9

Design tokens & code

CSS
--color: #f0d97b;
/* rgb */ color: rgb(240, 217, 123);
/* oklch */ color: oklch(88.5% 0.117 96.0);
Tailwind
colors: {
  custom: {
    50: '#f7e4a3',
    500: '#f0d97b',
    950: '#000000',
  },
}
SCSS
$custom: #f0d97b;
$custom-light: #f7e4a3;
$custom-dark: #000000;
JSON
{
  "hex": "#f0d97b",
  "rgb": {
    "r": 240,
    "g": 217,
    "b": 123
  },
  "hsl": {
    "h": 48.205,
    "s": 79.592,
    "l": 71.176
  },
  "oklch": {
    "l": 0.88477,
    "c": 0.11739,
    "h": 96
  },
  "luminance": 0.69581
}

Semantic roles & 50–950 ramp

primary
#F0D97B
secondary
#455FCA
accent
#33DC0A
background
#FFFEFC
surface
#FFFCF6
border
#D7D5D0
text
#17150F
muted
#858480

Preview Lab

Preview with #F0D97B

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

Preview Lab → · Contrast checker → · Palette generator →

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