#F2E251#F2E251

#F2E251 is a very light, vivid yellow. Relative luminance 0.739; OKLCH L 90.0% C 0.161 H 103.0°. Best body text is #000000 at 15.77:1 contrast (WCAG AA passes).

Color values

HEX#F2E251
RGBrgb(242, 226, 81)
HSLhsl(54, 86%, 63%)
HSVhsv(54, 67%, 95%)
CMYKcmyk(0%, 6.6%, 66.5%, 5.1%)
CIE-LABlab(88.86, -10.78, 69.82)
CIE-LCHlch(88.86, 70.65, 98.78°)
OKLaboklab(90.03% -0.0361 0.1568)
OKLCHoklch(90.03% 0.161 103)
XYZxyz(65.3022, 73.8667, 18.6009)
Luminance0.7386 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2E251 #5161F2
analogous
#F29151 #F2E251 #B1F251
triadic
#F2E251 #51F2E2 #E251F2
tetradic
#F2E251 #51F291 #5161F2 #F251B1
square
#F2E251 #51F291 #5161F2 #F251B1
split-complementary
#F2E251 #51B1F2 #9151F2
monochromatic
#BBA90E #EED918 #F2E251 #F6EB8A #FBF5C3

Accessibility & contrast

On white

1.33
#F2E251 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.77
#F2E251 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2E251
15.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2E251#FFFFFF#000000##000000
##F2E2511.001.3315.7715.77
#FFFFFF1.331.0021.0021.00
#00000015.7721.001.001.00
##00000015.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#F6DB3D
Deuteranopia (green-blind)
#FBE25A
Tritanopia (blue-blind)
#FFD3C4
Achromatopsia (no color)
#DFDFDF

Design tokens & code

CSS
--color: #f2e251;
/* rgb */ color: rgb(242, 226, 81);
/* oklch */ color: oklch(90.0% 0.161 103.0);
Tailwind
colors: {
  custom: {
    50: '#faea89',
    500: '#f2e251',
    950: '#000000',
  },
}
SCSS
$custom: #f2e251;
$custom-light: #faea89;
$custom-dark: #000000;
JSON
{
  "hex": "#f2e251",
  "rgb": {
    "r": 242,
    "g": 226,
    "b": 81
  },
  "hsl": {
    "h": 54.037,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.90027,
    "c": 0.16088,
    "h": 103
  },
  "luminance": 0.73864
}

Semantic roles & 50–950 ramp

primary
#F2E251
secondary
#2E3CB9
accent
#19E303
background
#FFFEFC
surface
#FFFDF4
border
#D7D5CE
text
#18160C
muted
#86847F

Preview Lab

Preview with #F2E251

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

Preview Lab → · Contrast checker → · Palette generator →

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