#F2D451#F2D451

#F2D451 is a very light, vivid yellow. Relative luminance 0.666; OKLCH L 87.2% C 0.150 H 96.2°. Best body text is #000000 at 14.31:1 contrast (WCAG AA passes).

Color values

HEX#F2D451
RGBrgb(242, 212, 81)
HSLhsl(49, 86%, 63%)
HSVhsv(49, 67%, 95%)
CMYKcmyk(0%, 12.4%, 66.5%, 5.1%)
CIE-LABlab(85.28, -3.75, 66.13)
CIE-LCHlch(85.28, 66.23, 93.24°)
OKLaboklab(87.19% -0.0161 0.149)
OKLCHoklch(87.19% 0.15 96.2)
XYZxyz(61.6496, 66.5614, 17.3834)
Luminance0.6656 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2D451 #516FF2
analogous
#F28351 #F2D451 #BFF251
triadic
#F2D451 #51F2D4 #D451F2
tetradic
#F2D451 #51F283 #516FF2 #F251BF
square
#F2D451 #51F283 #516FF2 #F251BF
split-complementary
#F2D451 #51BFF2 #8351F2
monochromatic
#BB9A0E #EEC618 #F2D451 #F6E28A #FBF0C3

Accessibility & contrast

On white

1.47
#F2D451 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.31
#F2D451 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2D451
14.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2D451#FFFFFF#000000##000000
##F2D4511.001.4714.3114.31
#FFFFFF1.471.0021.0021.00
#00000014.3121.001.001.00
##00000014.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#E9D040
Deuteranopia (green-blind)
#F0D958
Tritanopia (blue-blind)
#FFC5B9
Achromatopsia (no color)
#D5D5D5

Design tokens & code

CSS
--color: #f2d451;
/* rgb */ color: rgb(242, 212, 81);
/* oklch */ color: oklch(87.2% 0.150 96.2);
Tailwind
colors: {
  custom: {
    50: '#fae088',
    500: '#f2d451',
    950: '#000000',
  },
}
SCSS
$custom: #f2d451;
$custom-light: #fae088;
$custom-dark: #000000;
JSON
{
  "hex": "#f2d451",
  "rgb": {
    "r": 242,
    "g": 212,
    "b": 81
  },
  "hsl": {
    "h": 48.82,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.87189,
    "c": 0.14984,
    "h": 96.2
  },
  "luminance": 0.66558
}

Semantic roles & 50–950 ramp

primary
#F2D451
secondary
#2E48B9
accent
#2DE303
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150C
muted
#86847F

Preview Lab

Preview with #F2D451

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

Preview Lab → · Contrast checker → · Palette generator →

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