#F2DF7F#F2DF7F

#F2DF7F is a very light, moderate yellow. Relative luminance 0.732; OKLCH L 89.9% C 0.119 H 98.4°. Best body text is #000000 at 15.64:1 contrast (WCAG AA passes).

Color values

HEX#F2DF7F
RGBrgb(242, 223, 127)
HSLhsl(50, 82%, 72%)
HSVhsv(50, 48%, 95%)
CMYKcmyk(0%, 7.9%, 47.5%, 5.1%)
CIE-LABlab(88.54, -5.96, 49.12)
CIE-LCHlch(88.54, 49.48, 96.92°)
OKLaboklab(89.91% -0.0173 0.1176)
OKLCHoklch(89.91% 0.119 98.4)
XYZxyz(66.8383, 73.1873, 30.6804)
Luminance0.7319 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2DF7F #7F92F2
analogous
#F2A67F #F2DF7F #CBF27F
triadic
#F2DF7F #7FF2DF #DF7FF2
tetradic
#F2DF7F #7FF2A6 #7F92F2 #F27FCB
square
#F2DF7F #7FF2A6 #7F92F2 #F27FCB
split-complementary
#F2DF7F #7FCBF2 #A67FF2
monochromatic
#E0BF17 #ECD147 #F2DF7F #F8EDB7 #FCF8E3

Accessibility & contrast

On white

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

On black

15.64
#F2DF7F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2DF7F
15.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2DF7F#FFFFFF#000000##000000
##F2DF7F1.001.3415.6415.64
#FFFFFF1.341.0021.0021.00
#00000015.6421.001.001.00
##00000015.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#F0DA77
Deuteranopia (green-blind)
#F5E183
Tritanopia (blue-blind)
#FFD3C8
Achromatopsia (no color)
#DEDEDE

Design tokens & code

CSS
--color: #f2df7f;
/* rgb */ color: rgb(242, 223, 127);
/* oklch */ color: oklch(89.9% 0.119 98.4);
Tailwind
colors: {
  custom: {
    50: '#f8e8a6',
    500: '#f2df7f',
    950: '#000000',
  },
}
SCSS
$custom: #f2df7f;
$custom-light: #f8e8a6;
$custom-dark: #000000;
JSON
{
  "hex": "#f2df7f",
  "rgb": {
    "r": 242,
    "g": 223,
    "b": 127
  },
  "hsl": {
    "h": 50.087,
    "s": 81.56,
    "l": 72.353
  },
  "oklch": {
    "l": 0.89914,
    "c": 0.11882,
    "h": 98.4
  },
  "luminance": 0.73185
}

Semantic roles & 50–950 ramp

primary
#F2DF7F
secondary
#485ECD
accent
#2BDE08
background
#FFFEFC
surface
#FFFCF6
border
#D7D5D0
text
#17160F
muted
#858480

Preview Lab

Preview with #F2DF7F

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

Preview Lab → · Contrast checker → · Palette generator →

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