#F2E257#F2E257

#F2E257 is a very light, vivid yellow. Relative luminance 0.740; OKLCH L 90.1% C 0.157 H 102.7°. Best body text is #000000 at 15.79:1 contrast (WCAG AA passes).

Color values

HEX#F2E257
RGBrgb(242, 226, 87)
HSLhsl(54, 86%, 65%)
HSVhsv(54, 64%, 95%)
CMYKcmyk(0%, 6.6%, 64%, 5.1%)
CIE-LABlab(88.90, -10.45, 67.49)
CIE-LCHlch(88.90, 68.29, 98.80°)
OKLaboklab(90.08% -0.0345 0.1528)
OKLCHoklch(90.08% 0.157 102.7)
XYZxyz(65.5372, 73.9607, 19.8387)
Luminance0.7396 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2E257 #5767F2
analogous
#F29457 #F2E257 #B5F257
triadic
#F2E257 #57F2E2 #E257F2
tetradic
#F2E257 #57F294 #5767F2 #F257B5
square
#F2E257 #57F294 #5767F2 #F257B5
split-complementary
#F2E257 #57B5F2 #9457F2
monochromatic
#C0AD0F #EED81E #F2E257 #F6EC90 #FBF6C9

Accessibility & contrast

On white

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

On black

15.79
#F2E257 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2E257
15.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2E257#FFFFFF#000000##000000
##F2E2571.001.3315.7915.79
#FFFFFF1.331.0021.0021.00
#00000015.7921.001.001.00
##00000015.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#F5DB45
Deuteranopia (green-blind)
#FAE35F
Tritanopia (blue-blind)
#FFD3C5
Achromatopsia (no color)
#DFDFDF

Design tokens & code

CSS
--color: #f2e257;
/* rgb */ color: rgb(242, 226, 87);
/* oklch */ color: oklch(90.1% 0.157 102.7);
Tailwind
colors: {
  custom: {
    50: '#faea8d',
    500: '#f2e257',
    950: '#000000',
  },
}
SCSS
$custom: #f2e257;
$custom-light: #faea8d;
$custom-dark: #000000;
JSON
{
  "hex": "#f2e257",
  "rgb": {
    "r": 242,
    "g": 226,
    "b": 87
  },
  "hsl": {
    "h": 53.806,
    "s": 85.635,
    "l": 64.51
  },
  "oklch": {
    "l": 0.90076,
    "c": 0.15663,
    "h": 102.7
  },
  "luminance": 0.73958
}

Semantic roles & 50–950 ramp

primary
#F2E257
secondary
#303EBE
accent
#1AE203
background
#FFFEFC
surface
#FFFDF4
border
#D7D5CE
text
#18160D
muted
#86847F

Preview Lab

Preview with #F2E257

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

Preview Lab → · Contrast checker → · Palette generator →

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