#F2E151#F2E151

#F2E151 is a very light, vivid yellow. Relative luminance 0.733; OKLCH L 89.8% C 0.160 H 102.5°. Best body text is #000000 at 15.66:1 contrast (WCAG AA passes).

Color values

HEX#F2E151
RGBrgb(242, 225, 81)
HSLhsl(54, 86%, 63%)
HSVhsv(54, 67%, 95%)
CMYKcmyk(0%, 7%, 66.5%, 5.1%)
CIE-LABlab(88.60, -10.29, 69.55)
CIE-LCHlch(88.60, 70.31, 98.41°)
OKLaboklab(89.82% -0.0347 0.1562)
OKLCHoklch(89.82% 0.16 102.5)
XYZxyz(65.0311, 73.3244, 18.5105)
Luminance0.7332 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2E151 #5162F2
analogous
#F29151 #F2E151 #B2F251
triadic
#F2E151 #51F2E1 #E151F2
tetradic
#F2E151 #51F291 #5162F2 #F251B2
square
#F2E151 #51F291 #5162F2 #F251B2
split-complementary
#F2E151 #51B2F2 #9151F2
monochromatic
#BBA80E #EED718 #F2E151 #F6EB8A #FBF5C3

Accessibility & contrast

On white

1.34
#F2E151 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.66
#F2E151 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2E151
15.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2E151#FFFFFF#000000##000000
##F2E1511.001.3415.6615.66
#FFFFFF1.341.0021.0021.00
#00000015.6621.001.001.00
##00000015.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#F5DA3D
Deuteranopia (green-blind)
#FAE25A
Tritanopia (blue-blind)
#FFD2C4
Achromatopsia (no color)
#DEDEDE

Design tokens & code

CSS
--color: #f2e151;
/* rgb */ color: rgb(242, 225, 81);
/* oklch */ color: oklch(89.8% 0.160 102.5);
Tailwind
colors: {
  custom: {
    50: '#faea89',
    500: '#f2e151',
    950: '#000000',
  },
}
SCSS
$custom: #f2e151;
$custom-light: #faea89;
$custom-dark: #000000;
JSON
{
  "hex": "#f2e151",
  "rgb": {
    "r": 242,
    "g": 225,
    "b": 81
  },
  "hsl": {
    "h": 53.665,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.89822,
    "c": 0.16004,
    "h": 102.5
  },
  "luminance": 0.73322
}

Semantic roles & 50–950 ramp

primary
#F2E151
secondary
#2E3DB9
accent
#1BE303
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18160C
muted
#86847F

Preview Lab

Preview with #F2E151

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

Preview Lab → · Contrast checker → · Palette generator →

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