#F2DF8A#F2DF8A

#F2DF8A is a very light, moderate yellow. Relative luminance 0.735; OKLCH L 90.1% C 0.107 H 97.1°. Best body text is #000000 at 15.70:1 contrast (WCAG AA passes).

Color values

HEX#F2DF8A
RGBrgb(242, 223, 138)
HSLhsl(49, 80%, 75%)
HSVhsv(49, 43%, 95%)
CMYKcmyk(0%, 7.9%, 43%, 5.1%)
CIE-LABlab(88.68, -4.91, 43.92)
CIE-LCHlch(88.68, 44.19, 96.38°)
OKLaboklab(90.08% -0.0133 0.1066)
OKLCHoklch(90.08% 0.107 97.1)
XYZxyz(67.5947, 73.4899, 34.6642)
Luminance0.7349 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2DF8A #8A9DF2
analogous
#F2AB8A #F2DF8A #D1F28A
triadic
#F2DF8A #8AF2DF #DF8AF2
tetradic
#F2DF8A #8AF2AB #8A9DF2 #F28AD1
square
#F2DF8A #8AF2AB #8A9DF2 #F28AD1
split-complementary
#F2DF8A #8AD1F2 #AB8AF2
monochromatic
#E6C11C #ECD053 #F2DF8A #F8EEC1 #FCF7E3

Accessibility & contrast

On white

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

On black

15.70
#F2DF8A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2DF8A
15.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2DF8A#FFFFFF#000000##000000
##F2DF8A1.001.3415.7015.70
#FFFFFF1.341.0021.0021.00
#00000015.7021.001.001.00
##00000015.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#EFDB83
Deuteranopia (green-blind)
#F4E28D
Tritanopia (blue-blind)
#FFD3CA
Achromatopsia (no color)
#DFDFDF

Design tokens & code

CSS
--color: #f2df8a;
/* rgb */ color: rgb(242, 223, 138);
/* oklch */ color: oklch(90.1% 0.107 97.1);
Tailwind
colors: {
  custom: {
    50: '#f8e8ad',
    500: '#f2df8a',
    950: '#000000',
  },
}
SCSS
$custom: #f2df8a;
$custom-light: #f8e8ad;
$custom-dark: #000000;
JSON
{
  "hex": "#f2df8a",
  "rgb": {
    "r": 242,
    "g": 223,
    "b": 138
  },
  "hsl": {
    "h": 49.038,
    "s": 80,
    "l": 74.51
  },
  "oklch": {
    "l": 0.90075,
    "c": 0.10742,
    "h": 97.1
  },
  "luminance": 0.73488
}

Semantic roles & 50–950 ramp

primary
#F2DF8A
secondary
#5269CE
accent
#30DC09
background
#FFFEFD
surface
#FFFCF7
border
#D7D5D0
text
#171610
muted
#858481

Preview Lab

Preview with #F2DF8A

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

Preview Lab → · Contrast checker → · Palette generator →

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