#F2DC51#F2DC51

#F2DC51 is a very light, vivid yellow. Relative luminance 0.707; OKLCH L 88.8% C 0.156 H 100.2°. Best body text is #000000 at 15.13:1 contrast (WCAG AA passes).

Color values

HEX#F2DC51
RGBrgb(242, 220, 81)
HSLhsl(52, 86%, 63%)
HSVhsv(52, 67%, 95%)
CMYKcmyk(0%, 9.1%, 66.5%, 5.1%)
CIE-LABlab(87.32, -7.79, 68.24)
CIE-LCHlch(87.32, 68.68, 96.51°)
OKLaboklab(88.8% -0.0276 0.1534)
OKLCHoklch(88.8% 0.156 100.2)
XYZxyz(63.6991, 70.6606, 18.0666)
Luminance0.7066 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2DC51 #5167F2
analogous
#F28B51 #F2DC51 #B7F251
triadic
#F2DC51 #51F2DC #DC51F2
tetradic
#F2DC51 #51F28B #5167F2 #F251B7
square
#F2DC51 #51F28B #5167F2 #F251B7
split-complementary
#F2DC51 #51B7F2 #8B51F2
monochromatic
#BBA30E #EED118 #F2DC51 #F6E78A #FBF3C3

Accessibility & contrast

On white

1.39
#F2DC51 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.13
#F2DC51 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2DC51
15.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2DC51#FFFFFF#000000##000000
##F2DC511.001.3915.1315.13
#FFFFFF1.391.0021.0021.00
#00000015.1321.001.001.00
##00000015.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#F0D63E
Deuteranopia (green-blind)
#F6DE59
Tritanopia (blue-blind)
#FFCDBF
Achromatopsia (no color)
#DBDBDB

Design tokens & code

CSS
--color: #f2dc51;
/* rgb */ color: rgb(242, 220, 81);
/* oklch */ color: oklch(88.8% 0.156 100.2);
Tailwind
colors: {
  custom: {
    50: '#fae689',
    500: '#f2dc51',
    950: '#000000',
  },
}
SCSS
$custom: #f2dc51;
$custom-light: #fae689;
$custom-dark: #000000;
JSON
{
  "hex": "#f2dc51",
  "rgb": {
    "r": 242,
    "g": 220,
    "b": 81
  },
  "hsl": {
    "h": 51.801,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.88804,
    "c": 0.1559,
    "h": 100.2
  },
  "luminance": 0.70658
}

Semantic roles & 50–950 ramp

primary
#F2DC51
secondary
#2E41B9
accent
#21E303
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150C
muted
#86847F

Preview Lab

Preview with #F2DC51

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

Preview Lab → · Contrast checker → · Palette generator →

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