#F0D97A#F0D97A

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

Color values

HEX#F0D97A
RGBrgb(240, 217, 122)
HSLhsl(48, 80%, 71%)
HSVhsv(48, 49%, 94%)
CMYKcmyk(0%, 9.6%, 49.2%, 5.9%)
CIE-LABlab(86.78, -4.17, 49.35)
CIE-LCHlch(86.78, 49.52, 94.83°)
OKLaboklab(88.46% -0.0126 0.1177)
OKLCHoklch(88.46% 0.118 96.1)
XYZxyz(64.2629, 69.5587, 28.4497)
Luminance0.6956 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0D97A #7A91F0
analogous
#F09E7A #F0D97A #CCF07A
triadic
#F0D97A #7AF0D9 #D97AF0
tetradic
#F0D97A #7AF09E #7A91F0 #F07ACC
square
#F0D97A #7AF09E #7A91F0 #F07ACC
split-complementary
#F0D97A #7ACCF0 #9E7AF0
monochromatic
#D7B218 #EAC943 #F0D97A #F6E9B1 #FCF7E4

Accessibility & contrast

On white

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

On black

14.91
#F0D97A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0D97A
14.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0D97A#FFFFFF#000000##000000
##F0D97A1.001.4114.9114.91
#FFFFFF1.411.0021.0021.00
#00000014.9121.001.001.00
##00000014.9121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f0d97a;
/* rgb */ color: rgb(240, 217, 122);
/* oklch */ color: oklch(88.5% 0.118 96.1);
Tailwind
colors: {
  custom: {
    50: '#f7e4a2',
    500: '#f0d97a',
    950: '#000000',
  },
}
SCSS
$custom: #f0d97a;
$custom-light: #f7e4a2;
$custom-dark: #000000;
JSON
{
  "hex": "#f0d97a",
  "rgb": {
    "r": 240,
    "g": 217,
    "b": 122
  },
  "hsl": {
    "h": 48.305,
    "s": 79.73,
    "l": 70.98
  },
  "oklch": {
    "l": 0.88463,
    "c": 0.11838,
    "h": 96.1
  },
  "luminance": 0.69556
}

Semantic roles & 50–950 ramp

primary
#F0D97A
secondary
#445ECA
accent
#33DC09
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#17150F
muted
#858480

Preview Lab

Preview with #F0D97A

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

Preview Lab → · Contrast checker → · Palette generator →

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