#F2D97D#F2D97D

#F2D97D is a very light, moderate yellow. Relative luminance 0.700; OKLCH L 88.7% C 0.116 H 94.6°. Best body text is #000000 at 15.00:1 contrast (WCAG AA passes).

Color values

HEX#F2D97D
RGBrgb(242, 217, 125)
HSLhsl(47, 82%, 72%)
HSVhsv(47, 48%, 95%)
CMYKcmyk(0%, 10.3%, 48.3%, 5.1%)
CIE-LABlab(86.99, -3.10, 48.19)
CIE-LCHlch(86.99, 48.29, 93.68°)
OKLaboklab(88.68% -0.0093 0.1153)
OKLCHoklch(88.68% 0.116 94.6)
XYZxyz(65.1345, 69.9863, 29.4758)
Luminance0.6998 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2D97D #7D96F2
analogous
#F29E7D #F2D97D #D1F27D
triadic
#F2D97D #7DF2D9 #D97DF2
tetradic
#F2D97D #7DF29E #7D96F2 #F27DD1
square
#F2D97D #7DF29E #7D96F2 #F27DD1
split-complementary
#F2D97D #7DD1F2 #9E7DF2
monochromatic
#DEB416 #ECC945 #F2D97D #F8E9B5 #FCF7E3

Accessibility & contrast

On white

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

On black

15.00
#F2D97D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2D97D
15.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2D97D#FFFFFF#000000##000000
##F2D97D1.001.4015.0015.00
#FFFFFF1.401.0021.0021.00
#00000015.0021.001.001.00
##00000015.0021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f2d97d;
/* rgb */ color: rgb(242, 217, 125);
/* oklch */ color: oklch(88.7% 0.116 94.6);
Tailwind
colors: {
  custom: {
    50: '#f8e4a4',
    500: '#f2d97d',
    950: '#000000',
  },
}
SCSS
$custom: #f2d97d;
$custom-light: #f8e4a4;
$custom-dark: #000000;
JSON
{
  "hex": "#f2d97d",
  "rgb": {
    "r": 242,
    "g": 217,
    "b": 125
  },
  "hsl": {
    "h": 47.179,
    "s": 81.818,
    "l": 71.961
  },
  "oklch": {
    "l": 0.88683,
    "c": 0.11571,
    "h": 94.6
  },
  "luminance": 0.69984
}

Semantic roles & 50–950 ramp

primary
#F2D97D
secondary
#4663CD
accent
#35DE07
background
#FFFEFC
surface
#FFFCF6
border
#D7D5D0
text
#18150F
muted
#868480

Preview Lab

Preview with #F2D97D

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

Preview Lab → · Contrast checker → · Palette generator →

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