#F2E285#F2E285

#F2E285 is a very light, moderate yellow. Relative luminance 0.750; OKLCH L 90.6% C 0.115 H 99.7°. Best body text is #000000 at 15.99:1 contrast (WCAG AA passes).

Color values

HEX#F2E285
RGBrgb(242, 226, 133)
HSLhsl(51, 81%, 74%)
HSVhsv(51, 45%, 95%)
CMYKcmyk(0%, 6.6%, 45%, 5.1%)
CIE-LABlab(89.38, -6.91, 47.25)
CIE-LCHlch(89.38, 47.75, 98.32°)
OKLaboklab(90.6% -0.0195 0.1138)
OKLCHoklch(90.6% 0.115 99.7)
XYZxyz(68.0497, 74.9657, 33.0710)
Luminance0.7496 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2E285 #8595F2
analogous
#F2AB85 #F2E285 #CBF285
triadic
#F2E285 #85F2E2 #E285F2
tetradic
#F2E285 #85F2AB #8595F2 #F285CB
square
#F2E285 #85F2AB #8595F2 #F285CB
split-complementary
#F2E285 #85CBF2 #AB85F2
monochromatic
#E4C618 #ECD54E #F2E285 #F8EFBC #FCF8E3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##F2E285#FFFFFF#000000##000000
##F2E2851.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)
#F2DD7D
Deuteranopia (green-blind)
#F7E389
Tritanopia (blue-blind)
#FFD6CC
Achromatopsia (no color)
#E1E1E1

Design tokens & code

CSS
--color: #f2e285;
/* rgb */ color: rgb(242, 226, 133);
/* oklch */ color: oklch(90.6% 0.115 99.7);
Tailwind
colors: {
  custom: {
    50: '#f8eaaa',
    500: '#f2e285',
    950: '#000000',
  },
}
SCSS
$custom: #f2e285;
$custom-light: #f8eaaa;
$custom-dark: #000000;
JSON
{
  "hex": "#f2e285",
  "rgb": {
    "r": 242,
    "g": 226,
    "b": 133
  },
  "hsl": {
    "h": 51.193,
    "s": 80.741,
    "l": 73.529
  },
  "oklch": {
    "l": 0.90604,
    "c": 0.11545,
    "h": 99.7
  },
  "luminance": 0.74963
}

Semantic roles & 50–950 ramp

primary
#F2E285
secondary
#4E60CE
accent
#28DD08
background
#FFFEFD
surface
#FFFDF7
border
#D7D5D0
text
#171610
muted
#858481

Preview Lab

Preview with #F2E285

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

Preview Lab → · Contrast checker → · Palette generator →

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