#F2D97E#F2D97E

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

Color values

HEX#F2D97E
RGBrgb(242, 217, 126)
HSLhsl(47, 82%, 72%)
HSVhsv(47, 48%, 95%)
CMYKcmyk(0%, 10.3%, 47.9%, 5.1%)
CIE-LABlab(87.00, -3.01, 47.72)
CIE-LCHlch(87.00, 47.81, 93.61°)
OKLaboklab(88.7% -0.0089 0.1144)
OKLCHoklch(88.7% 0.115 94.5)
XYZxyz(65.1987, 70.0119, 29.8139)
Luminance0.7001 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2D97E #7E97F2
analogous
#F29F7E #F2D97E #D1F27E
triadic
#F2D97E #7EF2D9 #D97EF2
tetradic
#F2D97E #7EF29F #7E97F2 #F27ED1
square
#F2D97E #7EF29F #7E97F2 #F27ED1
split-complementary
#F2D97E #7ED1F2 #9F7EF2
monochromatic
#DFB416 #ECC946 #F2D97E #F8E9B6 #FCF7E3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##F2D97E#FFFFFF#000000##000000
##F2D97E1.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)
#EAD576
Deuteranopia (green-blind)
#F1DD82
Tritanopia (blue-blind)
#FFCCC3
Achromatopsia (no color)
#DADADA

Design tokens & code

CSS
--color: #f2d97e;
/* rgb */ color: rgb(242, 217, 126);
/* oklch */ color: oklch(88.7% 0.115 94.5);
Tailwind
colors: {
  custom: {
    50: '#f8e4a5',
    500: '#f2d97e',
    950: '#000000',
  },
}
SCSS
$custom: #f2d97e;
$custom-light: #f8e4a5;
$custom-dark: #000000;
JSON
{
  "hex": "#f2d97e",
  "rgb": {
    "r": 242,
    "g": 217,
    "b": 126
  },
  "hsl": {
    "h": 47.069,
    "s": 81.69,
    "l": 72.157
  },
  "oklch": {
    "l": 0.88697,
    "c": 0.11472,
    "h": 94.5
  },
  "luminance": 0.70009
}

Semantic roles & 50–950 ramp

primary
#F2D97E
secondary
#4764CD
accent
#36DE07
background
#FFFEFC
surface
#FFFCF6
border
#D7D5D0
text
#17150F
muted
#858480

Preview Lab

Preview with #F2D97E

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

Preview Lab → · Contrast checker → · Palette generator →

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