#F2EB87#F2EB87

#F2EB87 is a very light, vivid yellow. Relative luminance 0.800; OKLCH L 92.5% C 0.122 H 105.0°. Best body text is #000000 at 17.01:1 contrast (WCAG AA passes).

Color values

HEX#F2EB87
RGBrgb(242, 235, 135)
HSLhsl(56, 80%, 74%)
HSVhsv(56, 44%, 95%)
CMYKcmyk(0%, 2.9%, 44.2%, 5.1%)
CIE-LABlab(91.71, -11.21, 49.16)
CIE-LCHlch(91.71, 50.42, 102.85°)
OKLaboklab(92.46% -0.0317 0.1182)
OKLCHoklch(92.46% 0.122 105)
XYZxyz(70.7010, 80.0451, 34.6429)
Luminance0.8004 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2EB87 #878EF2
analogous
#F2B687 #F2EB87 #C4F287
triadic
#F2EB87 #87F2EB #EB87F2
tetradic
#F2EB87 #87F2B6 #878EF2 #F287C4
square
#F2EB87 #87F2B6 #878EF2 #F287C4
split-complementary
#F2EB87 #87C4F2 #B687F2
monochromatic
#E6D819 #ECE250 #F2EB87 #F8F4BE #FCFAE3

Accessibility & contrast

On white

1.23
#F2EB87 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.01
#F2EB87 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2EB87
17.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2EB87#FFFFFF#000000##000000
##F2EB871.001.2317.0117.01
#FFFFFF1.231.0021.0021.00
#00000017.0121.001.001.00
##00000017.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#FAE47F
Deuteranopia (green-blind)
#FDEA8B
Tritanopia (blue-blind)
#FFDFD3
Achromatopsia (no color)
#E7E7E7

Design tokens & code

CSS
--color: #f2eb87;
/* rgb */ color: rgb(242, 235, 135);
/* oklch */ color: oklch(92.5% 0.122 105.0);
Tailwind
colors: {
  custom: {
    50: '#f8f1ac',
    500: '#f2eb87',
    950: '#000000',
  },
}
SCSS
$custom: #f2eb87;
$custom-light: #f8f1ac;
$custom-dark: #000000;
JSON
{
  "hex": "#f2eb87",
  "rgb": {
    "r": 242,
    "g": 235,
    "b": 135
  },
  "hsl": {
    "h": 56.075,
    "s": 80.451,
    "l": 73.922
  },
  "oklch": {
    "l": 0.92459,
    "c": 0.12238,
    "h": 105
  },
  "luminance": 0.80043
}

Semantic roles & 50–950 ramp

primary
#F2EB87
secondary
#4F58CE
accent
#17DD09
background
#FFFFFD
surface
#FFFEF7
border
#D7D6D0
text
#171610
muted
#858581

Preview Lab

Preview with #F2EB87

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

Preview Lab → · Contrast checker → · Palette generator →

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