#F2D051#F2D051

#F2D051 is a very light, vivid yellow. Relative luminance 0.646; OKLCH L 86.4% C 0.147 H 94.0°. Best body text is #000000 at 13.92:1 contrast (WCAG AA passes).

Color values

HEX#F2D051
RGBrgb(242, 208, 81)
HSLhsl(47, 86%, 63%)
HSVhsv(47, 67%, 95%)
CMYKcmyk(0%, 14%, 66.5%, 5.1%)
CIE-LABlab(84.27, -1.71, 65.07)
CIE-LCHlch(84.27, 65.09, 91.50°)
OKLaboklab(86.39% -0.0102 0.1468)
OKLCHoklch(86.39% 0.147 94)
XYZxyz(60.6620, 64.5863, 17.0542)
Luminance0.6458 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2D051 #5173F2
analogous
#F27F51 #F2D051 #C3F251
triadic
#F2D051 #51F2D0 #D051F2
tetradic
#F2D051 #51F27F #5173F2 #F251C3
square
#F2D051 #51F27F #5173F2 #F251C3
split-complementary
#F2D051 #51C3F2 #7F51F2
monochromatic
#BB960E #EEC118 #F2D051 #F6DF8A #FBEFC3

Accessibility & contrast

On white

1.51
#F2D051 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.92
#F2D051 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2D051
13.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2D051#FFFFFF#000000##000000
##F2D0511.001.5113.9213.92
#FFFFFF1.511.0021.0021.00
#00000013.9221.001.001.00
##00000013.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#E5CC41
Deuteranopia (green-blind)
#EDD757
Tritanopia (blue-blind)
#FFC0B6
Achromatopsia (no color)
#D2D2D2

Design tokens & code

CSS
--color: #f2d051;
/* rgb */ color: rgb(242, 208, 81);
/* oklch */ color: oklch(86.4% 0.147 94.0);
Tailwind
colors: {
  custom: {
    50: '#fade88',
    500: '#f2d051',
    950: '#000000',
  },
}
SCSS
$custom: #f2d051;
$custom-light: #fade88;
$custom-dark: #000000;
JSON
{
  "hex": "#f2d051",
  "rgb": {
    "r": 242,
    "g": 208,
    "b": 81
  },
  "hsl": {
    "h": 47.329,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.86389,
    "c": 0.14711,
    "h": 94
  },
  "luminance": 0.64583
}

Semantic roles & 50–950 ramp

primary
#F2D051
secondary
#2E4BB9
accent
#32E303
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150C
muted
#86847F

Preview Lab

Preview with #F2D051

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

Preview Lab → · Contrast checker → · Palette generator →

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