#F2D97A#F2D97A

#F2D97A is a very light, moderate yellow. Relative luminance 0.699; OKLCH L 88.6% C 0.119 H 95.0°. Best body text is #000000 at 14.98:1 contrast (WCAG AA passes).

Color values

HEX#F2D97A
RGBrgb(242, 217, 122)
HSLhsl(48, 82%, 71%)
HSVhsv(48, 50%, 95%)
CMYKcmyk(0%, 10.3%, 49.6%, 5.1%)
CIE-LABlab(86.95, -3.37, 49.60)
CIE-LCHlch(86.95, 49.71, 93.89°)
OKLaboklab(88.64% -0.0104 0.1182)
OKLCHoklch(88.64% 0.119 95)
XYZxyz(64.9458, 69.9108, 28.4817)
Luminance0.6991 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2D97A #7A93F2
analogous
#F29D7A #F2D97A #CFF27A
triadic
#F2D97A #7AF2D9 #D97AF2
tetradic
#F2D97A #7AF29D #7A93F2 #F27ACF
square
#F2D97A #7AF29D #7A93F2 #F27ACF
split-complementary
#F2D97A #7ACFF2 #9D7AF2
monochromatic
#DCB316 #EDC942 #F2D97A #F7E9B2 #FCF7E3

Accessibility & contrast

On white

1.40
#F2D97A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.98
#F2D97A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2D97A
14.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2D97A#FFFFFF#000000##000000
##F2D97A1.001.4014.9814.98
#FFFFFF1.401.0021.0021.00
#00000014.9821.001.001.00
##00000014.9821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f2d97a;
/* rgb */ color: rgb(242, 217, 122);
/* oklch */ color: oklch(88.6% 0.119 95.0);
Tailwind
colors: {
  custom: {
    50: '#f8e4a2',
    500: '#f2d97a',
    950: '#000000',
  },
}
SCSS
$custom: #f2d97a;
$custom-light: #f8e4a2;
$custom-dark: #000000;
JSON
{
  "hex": "#f2d97a",
  "rgb": {
    "r": 242,
    "g": 217,
    "b": 122
  },
  "hsl": {
    "h": 47.5,
    "s": 82.192,
    "l": 71.373
  },
  "oklch": {
    "l": 0.88641,
    "c": 0.11868,
    "h": 95
  },
  "luminance": 0.69908
}

Semantic roles & 50–950 ramp

primary
#F2D97A
secondary
#4460CD
accent
#34DF07
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18150F
muted
#868480

Preview Lab

Preview with #F2D97A

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

Preview Lab → · Contrast checker → · Palette generator →

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