#F2DE97#F2DE97

#F2DE97 is a very light, moderate yellow. Relative luminance 0.734; OKLCH L 90.1% C 0.092 H 94.2°. Best body text is #000000 at 15.67:1 contrast (WCAG AA passes).

Color values

HEX#F2DE97
RGBrgb(242, 222, 151)
HSLhsl(47, 78%, 77%)
HSVhsv(47, 38%, 95%)
CMYKcmyk(0%, 8.3%, 37.6%, 5.1%)
CIE-LABlab(88.62, -3.03, 37.34)
CIE-LCHlch(88.62, 37.46, 94.64°)
OKLaboklab(90.09% -0.0068 0.0921)
OKLCHoklch(90.09% 0.092 94.2)
XYZxyz(68.3265, 73.3564, 39.8322)
Luminance0.7335 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2DE97 #97ABF2
analogous
#F2B197 #F2DE97 #D9F297
triadic
#F2DE97 #97F2DE #DE97F2
tetradic
#F2DE97 #97F2B1 #97ABF2 #F297D9
square
#F2DE97 #97F2B1 #97ABF2 #F297D9
split-complementary
#F2DE97 #97D9F2 #B197F2
monochromatic
#E4BB2A #EBCD61 #F2DE97 #F9EFCD #FCF6E4

Accessibility & contrast

On white

1.34
#F2DE97 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.67
#F2DE97 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2DE97
15.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2DE97#FFFFFF#000000##000000
##F2DE971.001.3415.6715.67
#FFFFFF1.341.0021.0021.00
#00000015.6721.001.001.00
##00000015.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#ECDB92
Deuteranopia (green-blind)
#F2E199
Tritanopia (blue-blind)
#FFD4CC
Achromatopsia (no color)
#DEDEDE

Design tokens & code

CSS
--color: #f2de97;
/* rgb */ color: rgb(242, 222, 151);
/* oklch */ color: oklch(90.1% 0.092 94.2);
Tailwind
colors: {
  custom: {
    50: '#f7e8b6',
    500: '#f2de97',
    950: '#000000',
  },
}
SCSS
$custom: #f2de97;
$custom-light: #f7e8b6;
$custom-dark: #000000;
JSON
{
  "hex": "#f2de97",
  "rgb": {
    "r": 242,
    "g": 222,
    "b": 151
  },
  "hsl": {
    "h": 46.813,
    "s": 77.778,
    "l": 77.059
  },
  "oklch": {
    "l": 0.90087,
    "c": 0.09237,
    "h": 94.2
  },
  "luminance": 0.73354
}

Semantic roles & 50–950 ramp

primary
#F2DE97
secondary
#5E77CF
accent
#39DA0B
background
#FFFEFD
surface
#FFFCF8
border
#D7D5D1
text
#171611
muted
#858481

Preview Lab

Preview with #F2DE97

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

Preview Lab → · Contrast checker → · Palette generator →

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