#F2DF70#F2DF70

#F2DF70 is a very light, vivid yellow. Relative luminance 0.728; OKLCH L 89.7% C 0.133 H 99.8°. Best body text is #000000 at 15.56:1 contrast (WCAG AA passes).

Color values

HEX#F2DF70
RGBrgb(242, 223, 112)
HSLhsl(51, 83%, 69%)
HSVhsv(51, 54%, 95%)
CMYKcmyk(0%, 7.9%, 53.7%, 5.1%)
CIE-LABlab(88.36, -7.23, 56.00)
CIE-LCHlch(88.36, 56.47, 97.36°)
OKLaboklab(89.72% -0.0226 0.1314)
OKLCHoklch(89.72% 0.133 99.8)
XYZxyz(65.9325, 72.8250, 25.9097)
Luminance0.7282 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2DF70 #7083F2
analogous
#F29E70 #F2DF70 #C4F270
triadic
#F2DF70 #70F2DF #DF70F2
tetradic
#F2DF70 #70F29E #7083F2 #F270C4
square
#F2DF70 #70F29E #7083F2 #F270C4
split-complementary
#F2DF70 #70C4F2 #9E70F2
monochromatic
#D4B813 #EDD238 #F2DF70 #F7ECA8 #FCF8E0

Accessibility & contrast

On white

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

On black

15.56
#F2DF70 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2DF70
15.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2DF70#FFFFFF#000000##000000
##F2DF701.001.3515.5615.56
#FFFFFF1.351.0021.0021.00
#00000015.5621.001.001.00
##00000015.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#F1DA66
Deuteranopia (green-blind)
#F6E175
Tritanopia (blue-blind)
#FFD2C6
Achromatopsia (no color)
#DEDEDE

Design tokens & code

CSS
--color: #f2df70;
/* rgb */ color: rgb(242, 223, 112);
/* oklch */ color: oklch(89.7% 0.133 99.8);
Tailwind
colors: {
  custom: {
    50: '#f9e89c',
    500: '#f2df70',
    950: '#000000',
  },
}
SCSS
$custom: #f2df70;
$custom-light: #f9e89c;
$custom-dark: #000000;
JSON
{
  "hex": "#f2df70",
  "rgb": {
    "r": 242,
    "g": 223,
    "b": 112
  },
  "hsl": {
    "h": 51.231,
    "s": 83.333,
    "l": 69.412
  },
  "oklch": {
    "l": 0.89722,
    "c": 0.13329,
    "h": 99.8
  },
  "luminance": 0.72822
}

Semantic roles & 50–950 ramp

primary
#F2DF70
secondary
#3B50CB
accent
#26E006
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18160E
muted
#86847F

Preview Lab

Preview with #F2DF70

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

Preview Lab → · Contrast checker → · Palette generator →

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