#F2E451#F2E451

#F2E451 is a very light, vivid yellow. Relative luminance 0.750; OKLCH L 90.4% C 0.163 H 103.9°. Best body text is #000000 at 15.99:1 contrast (WCAG AA passes).

Color values

HEX#F2E451
RGBrgb(242, 228, 81)
HSLhsl(55, 86%, 63%)
HSVhsv(55, 67%, 95%)
CMYKcmyk(0%, 5.8%, 66.5%, 5.1%)
CIE-LABlab(89.37, -11.77, 70.34)
CIE-LCHlch(89.37, 71.32, 99.50°)
OKLaboklab(90.44% -0.0389 0.1579)
OKLCHoklch(90.44% 0.163 103.9)
XYZxyz(65.8492, 74.9607, 18.7832)
Luminance0.7496 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2E451 #515FF2
analogous
#F29451 #F2E451 #AFF251
triadic
#F2E451 #51F2E4 #E451F2
tetradic
#F2E451 #51F294 #515FF2 #F251AF
square
#F2E451 #51F294 #515FF2 #F251AF
split-complementary
#F2E451 #51AFF2 #9451F2
monochromatic
#BBAC0E #EEDB18 #F2E451 #F6ED8A #FBF6C3

Accessibility & contrast

On white

1.31
#F2E451 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.99
#F2E451 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2E451
15.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2E451#FFFFFF#000000##000000
##F2E4511.001.3115.9915.99
#FFFFFF1.311.0021.0021.00
#00000015.9921.001.001.00
##00000015.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#F8DD3C
Deuteranopia (green-blind)
#FCE45A
Tritanopia (blue-blind)
#FFD5C6
Achromatopsia (no color)
#E1E1E1

Design tokens & code

CSS
--color: #f2e451;
/* rgb */ color: rgb(242, 228, 81);
/* oklch */ color: oklch(90.4% 0.163 103.9);
Tailwind
colors: {
  custom: {
    50: '#faec89',
    500: '#f2e451',
    950: '#000000',
  },
}
SCSS
$custom: #f2e451;
$custom-light: #faec89;
$custom-dark: #000000;
JSON
{
  "hex": "#f2e451",
  "rgb": {
    "r": 242,
    "g": 228,
    "b": 81
  },
  "hsl": {
    "h": 54.783,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.90436,
    "c": 0.16262,
    "h": 103.9
  },
  "luminance": 0.74958
}

Semantic roles & 50–950 ramp

primary
#F2E451
secondary
#2E3AB9
accent
#16E303
background
#FFFEFC
surface
#FFFDF4
border
#D7D5CE
text
#18160C
muted
#86847F

Preview Lab

Preview with #F2E451

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

Preview Lab → · Contrast checker → · Palette generator →

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