#F2DF7D#F2DF7D

#F2DF7D is a very light, vivid yellow. Relative luminance 0.731; OKLCH L 89.9% C 0.121 H 98.6°. Best body text is #000000 at 15.63:1 contrast (WCAG AA passes).

Color values

HEX#F2DF7D
RGBrgb(242, 223, 125)
HSLhsl(50, 82%, 72%)
HSVhsv(50, 48%, 95%)
CMYKcmyk(0%, 7.9%, 48.3%, 5.1%)
CIE-LABlab(88.51, -6.14, 50.05)
CIE-LCHlch(88.51, 50.43, 96.99°)
OKLaboklab(89.89% -0.0181 0.1195)
OKLCHoklch(89.89% 0.121 98.6)
XYZxyz(66.7093, 73.1357, 30.0007)
Luminance0.7313 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2DF7D #7D90F2
analogous
#F2A47D #F2DF7D #CBF27D
triadic
#F2DF7D #7DF2DF #DF7DF2
tetradic
#F2DF7D #7DF2A4 #7D90F2 #F27DCB
square
#F2DF7D #7DF2A4 #7D90F2 #F27DCB
split-complementary
#F2DF7D #7DCBF2 #A47DF2
monochromatic
#DEBE16 #ECD145 #F2DF7D #F8EDB5 #FCF8E3

Accessibility & contrast

On white

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

On black

15.63
#F2DF7D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2DF7D
15.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2DF7D#FFFFFF#000000##000000
##F2DF7D1.001.3415.6315.63
#FFFFFF1.341.0021.0021.00
#00000015.6321.001.001.00
##00000015.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#F0DA75
Deuteranopia (green-blind)
#F5E181
Tritanopia (blue-blind)
#FFD2C8
Achromatopsia (no color)
#DEDEDE

Design tokens & code

CSS
--color: #f2df7d;
/* rgb */ color: rgb(242, 223, 125);
/* oklch */ color: oklch(89.9% 0.121 98.6);
Tailwind
colors: {
  custom: {
    50: '#f8e8a4',
    500: '#f2df7d',
    950: '#000000',
  },
}
SCSS
$custom: #f2df7d;
$custom-light: #f8e8a4;
$custom-dark: #000000;
JSON
{
  "hex": "#f2df7d",
  "rgb": {
    "r": 242,
    "g": 223,
    "b": 125
  },
  "hsl": {
    "h": 50.256,
    "s": 81.818,
    "l": 71.961
  },
  "oklch": {
    "l": 0.89887,
    "c": 0.12083,
    "h": 98.6
  },
  "luminance": 0.73133
}

Semantic roles & 50–950 ramp

primary
#F2DF7D
secondary
#465CCD
accent
#2ADE07
background
#FFFEFC
surface
#FFFCF6
border
#D7D5D0
text
#17160F
muted
#858480

Preview Lab

Preview with #F2DF7D

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

Preview Lab → · Contrast checker → · Palette generator →

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