#F2DE7A#F2DE7A

#F2DE7A is a very light, vivid yellow. Relative luminance 0.725; OKLCH L 89.6% C 0.123 H 98.3°. Best body text is #000000 at 15.51:1 contrast (WCAG AA passes).

Color values

HEX#F2DE7A
RGBrgb(242, 222, 122)
HSLhsl(50, 82%, 71%)
HSVhsv(50, 50%, 95%)
CMYKcmyk(0%, 8.3%, 49.6%, 5.1%)
CIE-LABlab(88.22, -5.90, 51.13)
CIE-LCHlch(88.22, 51.47, 96.58°)
OKLaboklab(89.65% -0.0177 0.1216)
OKLCHoklch(89.65% 0.123 98.3)
XYZxyz(66.2541, 72.5274, 28.9178)
Luminance0.7252 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2DE7A #7A8EF2
analogous
#F2A27A #F2DE7A #CAF27A
triadic
#F2DE7A #7AF2DE #DE7AF2
tetradic
#F2DE7A #7AF2A2 #7A8EF2 #F27ACA
square
#F2DE7A #7AF2A2 #7A8EF2 #F27ACA
split-complementary
#F2DE7A #7ACAF2 #A27AF2
monochromatic
#DCBB16 #EDD042 #F2DE7A #F7ECB2 #FCF8E3

Accessibility & contrast

On white

1.35
#F2DE7A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.51
#F2DE7A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2DE7A
15.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2DE7A#FFFFFF#000000##000000
##F2DE7A1.001.3515.5115.51
#FFFFFF1.351.0021.0021.00
#00000015.5121.001.001.00
##00000015.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#EFD971
Deuteranopia (green-blind)
#F5E07E
Tritanopia (blue-blind)
#FFD1C7
Achromatopsia (no color)
#DDDDDD

Design tokens & code

CSS
--color: #f2de7a;
/* rgb */ color: rgb(242, 222, 122);
/* oklch */ color: oklch(89.6% 0.123 98.3);
Tailwind
colors: {
  custom: {
    50: '#f8e8a2',
    500: '#f2de7a',
    950: '#000000',
  },
}
SCSS
$custom: #f2de7a;
$custom-light: #f8e8a2;
$custom-dark: #000000;
JSON
{
  "hex": "#f2de7a",
  "rgb": {
    "r": 242,
    "g": 222,
    "b": 122
  },
  "hsl": {
    "h": 50,
    "s": 82.192,
    "l": 71.373
  },
  "oklch": {
    "l": 0.89645,
    "c": 0.12291,
    "h": 98.3
  },
  "luminance": 0.72525
}

Semantic roles & 50–950 ramp

primary
#F2DE7A
secondary
#445ACD
accent
#2BDF07
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18160F
muted
#868480

Preview Lab

Preview with #F2DE7A

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

Preview Lab → · Contrast checker → · Palette generator →

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