#F2DD51#F2DD51

#F2DD51 is a very light, vivid yellow. Relative luminance 0.712; OKLCH L 89.0% C 0.157 H 100.7°. Best body text is #000000 at 15.24:1 contrast (WCAG AA passes).

Color values

HEX#F2DD51
RGBrgb(242, 221, 81)
HSLhsl(52, 86%, 63%)
HSVhsv(52, 67%, 95%)
CMYKcmyk(0%, 8.7%, 66.5%, 5.1%)
CIE-LABlab(87.58, -8.29, 68.50)
CIE-LCHlch(87.58, 69.00, 96.90°)
OKLaboklab(89.01% -0.029 0.154)
OKLCHoklch(89.01% 0.157 100.7)
XYZxyz(63.9624, 71.1870, 18.1543)
Luminance0.7118 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2DD51 #5166F2
analogous
#F28C51 #F2DD51 #B6F251
triadic
#F2DD51 #51F2DD #DD51F2
tetradic
#F2DD51 #51F28C #5166F2 #F251B6
square
#F2DD51 #51F28C #5166F2 #F251B6
split-complementary
#F2DD51 #51B6F2 #8C51F2
monochromatic
#BBA40E #EED218 #F2DD51 #F6E88A #FBF3C3

Accessibility & contrast

On white

1.38
#F2DD51 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.24
#F2DD51 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2DD51
15.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2DD51#FFFFFF#000000##000000
##F2DD511.001.3815.2415.24
#FFFFFF1.381.0021.0021.00
#00000015.2421.001.001.00
##00000015.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#F1D73E
Deuteranopia (green-blind)
#F7DF59
Tritanopia (blue-blind)
#FFCEC0
Achromatopsia (no color)
#DBDBDB

Design tokens & code

CSS
--color: #f2dd51;
/* rgb */ color: rgb(242, 221, 81);
/* oklch */ color: oklch(89.0% 0.157 100.7);
Tailwind
colors: {
  custom: {
    50: '#fae789',
    500: '#f2dd51',
    950: '#000000',
  },
}
SCSS
$custom: #f2dd51;
$custom-light: #fae789;
$custom-dark: #000000;
JSON
{
  "hex": "#f2dd51",
  "rgb": {
    "r": 242,
    "g": 221,
    "b": 81
  },
  "hsl": {
    "h": 52.174,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.89007,
    "c": 0.15671,
    "h": 100.7
  },
  "luminance": 0.71184
}

Semantic roles & 50–950 ramp

primary
#F2DD51
secondary
#2E40B9
accent
#20E303
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150C
muted
#86847F

Preview Lab

Preview with #F2DD51

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

Preview Lab → · Contrast checker → · Palette generator →

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