#F2E951#F2E951

#F2E951 is a very light, vivid yellow. Relative luminance 0.777; OKLCH L 91.5% C 0.167 H 105.9°. Best body text is #000000 at 16.55:1 contrast (WCAG AA passes).

Color values

HEX#F2E951
RGBrgb(242, 233, 81)
HSLhsl(57, 86%, 63%)
HSVhsv(57, 67%, 95%)
CMYKcmyk(0%, 3.7%, 66.5%, 5.1%)
CIE-LABlab(90.67, -14.24, 71.66)
CIE-LCHlch(90.67, 73.06, 101.24°)
OKLaboklab(91.46% -0.0459 0.1607)
OKLCHoklch(91.46% 0.167 105.9)
XYZxyz(67.2446, 77.7515, 19.2484)
Luminance0.7775 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2E951 #515AF2
analogous
#F29851 #F2E951 #AAF251
triadic
#F2E951 #51F2E9 #E951F2
tetradic
#F2E951 #51F298 #515AF2 #F251AA
square
#F2E951 #51F298 #515AF2 #F251AA
split-complementary
#F2E951 #51AAF2 #9851F2
monochromatic
#BBB10E #EEE218 #F2E951 #F6F08A #FBF7C3

Accessibility & contrast

On white

1.27
#F2E951 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.55
#F2E951 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2E951
16.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2E951#FFFFFF#000000##000000
##F2E9511.001.2716.5516.55
#FFFFFF1.271.0021.0021.00
#00000016.5521.001.001.00
##00000016.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#FCE13B
Deuteranopia (green-blind)
#FFE75B
Tritanopia (blue-blind)
#FFDACA
Achromatopsia (no color)
#E4E4E4

Design tokens & code

CSS
--color: #f2e951;
/* rgb */ color: rgb(242, 233, 81);
/* oklch */ color: oklch(91.5% 0.167 105.9);
Tailwind
colors: {
  custom: {
    50: '#faef8a',
    500: '#f2e951',
    950: '#000000',
  },
}
SCSS
$custom: #f2e951;
$custom-light: #faef8a;
$custom-dark: #000000;
JSON
{
  "hex": "#f2e951",
  "rgb": {
    "r": 242,
    "g": 233,
    "b": 81
  },
  "hsl": {
    "h": 56.646,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.91464,
    "c": 0.1671,
    "h": 105.9
  },
  "luminance": 0.77749
}

Semantic roles & 50–950 ramp

primary
#F2E951
secondary
#2E36B9
accent
#0FE303
background
#FFFFFC
surface
#FFFEF4
border
#D7D6CE
text
#18160C
muted
#86857F

Preview Lab

Preview with #F2E951

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

Preview Lab → · Contrast checker → · Palette generator →

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