#F2DF97#F2DF97

#F2DF97 is a very light, moderate yellow. Relative luminance 0.739; OKLCH L 90.3% C 0.093 H 95.1°. Best body text is #000000 at 15.78:1 contrast (WCAG AA passes).

Color values

HEX#F2DF97
RGBrgb(242, 223, 151)
HSLhsl(47, 78%, 77%)
HSVhsv(47, 38%, 95%)
CMYKcmyk(0%, 7.9%, 37.6%, 5.1%)
CIE-LABlab(88.87, -3.54, 37.67)
CIE-LCHlch(88.87, 37.83, 95.37°)
OKLaboklab(90.29% -0.0083 0.0929)
OKLCHoklch(90.29% 0.093 95.1)
XYZxyz(68.5928, 73.8891, 39.9210)
Luminance0.7389 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2DF97 #97AAF2
analogous
#F2B297 #F2DF97 #D7F297
triadic
#F2DF97 #97F2DF #DF97F2
tetradic
#F2DF97 #97F2B2 #97AAF2 #F297D7
square
#F2DF97 #97F2B2 #97AAF2 #F297D7
split-complementary
#F2DF97 #97D7F2 #B297F2
monochromatic
#E4BE2A #EBCE61 #F2DF97 #F9F0CD #FCF7E4

Accessibility & contrast

On white

1.33
#F2DF97 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.78
#F2DF97 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2DF97
15.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2DF97#FFFFFF#000000##000000
##F2DF971.001.3315.7815.78
#FFFFFF1.331.0021.0021.00
#00000015.7821.001.001.00
##00000015.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#EDDC92
Deuteranopia (green-blind)
#F2E29A
Tritanopia (blue-blind)
#FFD5CD
Achromatopsia (no color)
#DFDFDF

Design tokens & code

CSS
--color: #f2df97;
/* rgb */ color: rgb(242, 223, 151);
/* oklch */ color: oklch(90.3% 0.093 95.1);
Tailwind
colors: {
  custom: {
    50: '#f7e8b6',
    500: '#f2df97',
    950: '#000000',
  },
}
SCSS
$custom: #f2df97;
$custom-light: #f7e8b6;
$custom-dark: #000000;
JSON
{
  "hex": "#f2df97",
  "rgb": {
    "r": 242,
    "g": 223,
    "b": 151
  },
  "hsl": {
    "h": 47.473,
    "s": 77.778,
    "l": 77.059
  },
  "oklch": {
    "l": 0.90286,
    "c": 0.09325,
    "h": 95.1
  },
  "luminance": 0.73887
}

Semantic roles & 50–950 ramp

primary
#F2DF97
secondary
#5E75CF
accent
#37DA0B
background
#FFFEFD
surface
#FFFCF8
border
#D7D5D1
text
#171611
muted
#858481

Preview Lab

Preview with #F2DF97

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

Preview Lab → · Contrast checker → · Palette generator →

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