#F2DF51#F2DF51

#F2DF51 is a very light, vivid yellow. Relative luminance 0.722; OKLCH L 89.4% C 0.158 H 101.6°. Best body text is #000000 at 15.45:1 contrast (WCAG AA passes).

Color values

HEX#F2DF51
RGBrgb(242, 223, 81)
HSLhsl(53, 86%, 63%)
HSVhsv(53, 67%, 95%)
CMYKcmyk(0%, 7.9%, 66.5%, 5.1%)
CIE-LABlab(88.09, -9.29, 69.03)
CIE-LCHlch(88.09, 69.65, 97.66°)
OKLaboklab(89.41% -0.0319 0.1551)
OKLCHoklch(89.41% 0.158 101.6)
XYZxyz(64.4936, 72.2494, 18.3314)
Luminance0.7225 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2DF51 #5164F2
analogous
#F28E51 #F2DF51 #B4F251
triadic
#F2DF51 #51F2DF #DF51F2
tetradic
#F2DF51 #51F28E #5164F2 #F251B4
square
#F2DF51 #51F28E #5164F2 #F251B4
split-complementary
#F2DF51 #51B4F2 #8E51F2
monochromatic
#BBA60E #EED518 #F2DF51 #F6E98A #FBF4C3

Accessibility & contrast

On white

1.36
#F2DF51 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.45
#F2DF51 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2DF51
15.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2DF51#FFFFFF#000000##000000
##F2DF511.001.3615.4515.45
#FFFFFF1.361.0021.0021.00
#00000015.4521.001.001.00
##00000015.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#F3D83E
Deuteranopia (green-blind)
#F8E059
Tritanopia (blue-blind)
#FFD0C2
Achromatopsia (no color)
#DDDDDD

Design tokens & code

CSS
--color: #f2df51;
/* rgb */ color: rgb(242, 223, 81);
/* oklch */ color: oklch(89.4% 0.158 101.6);
Tailwind
colors: {
  custom: {
    50: '#fae889',
    500: '#f2df51',
    950: '#000000',
  },
}
SCSS
$custom: #f2df51;
$custom-light: #fae889;
$custom-dark: #000000;
JSON
{
  "hex": "#f2df51",
  "rgb": {
    "r": 242,
    "g": 223,
    "b": 81
  },
  "hsl": {
    "h": 52.919,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.89414,
    "c": 0.15835,
    "h": 101.6
  },
  "luminance": 0.72247
}

Semantic roles & 50–950 ramp

primary
#F2DF51
secondary
#2E3EB9
accent
#1DE303
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18160C
muted
#86847F

Preview Lab

Preview with #F2DF51

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

Preview Lab → · Contrast checker → · Palette generator →

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