#F2E866#F2E866

#F2E866 is a very light, vivid yellow. Relative luminance 0.775; OKLCH L 91.4% C 0.150 H 104.9°. Best body text is #000000 at 16.51:1 contrast (WCAG AA passes).

Color values

HEX#F2E866
RGBrgb(242, 232, 102)
HSLhsl(56, 84%, 67%)
HSVhsv(56, 58%, 95%)
CMYKcmyk(0%, 4.1%, 57.9%, 5.1%)
CIE-LABlab(90.58, -12.46, 63.00)
CIE-LCHlch(90.58, 64.22, 101.19°)
OKLaboklab(91.45% -0.0386 0.1453)
OKLCHoklch(91.45% 0.15 104.9)
XYZxyz(67.8751, 77.5521, 23.9615)
Luminance0.7755 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2E866 #6670F2
analogous
#F2A266 #F2E866 #B6F266
triadic
#F2E866 #66F2E8 #E866F2
tetradic
#F2E866 #66F2A2 #6670F2 #F266B6
square
#F2E866 #66F2A2 #6670F2 #F266B6
split-complementary
#F2E866 #66B6F2 #A266F2
monochromatic
#CCBF11 #EDE02E #F2E866 #F7F09E #FCF9D7

Accessibility & contrast

On white

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

On black

16.51
#F2E866 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2E866
16.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2E866#FFFFFF#000000##000000
##F2E8661.001.2716.5116.51
#FFFFFF1.271.0021.0021.00
#00000016.5121.001.001.00
##00000016.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#FAE158
Deuteranopia (green-blind)
#FEE76D
Tritanopia (blue-blind)
#FFDACC
Achromatopsia (no color)
#E4E4E4

Design tokens & code

CSS
--color: #f2e866;
/* rgb */ color: rgb(242, 232, 102);
/* oklch */ color: oklch(91.4% 0.150 104.9);
Tailwind
colors: {
  custom: {
    50: '#f9ef96',
    500: '#f2e866',
    950: '#000000',
  },
}
SCSS
$custom: #f2e866;
$custom-light: #f9ef96;
$custom-dark: #000000;
JSON
{
  "hex": "#f2e866",
  "rgb": {
    "r": 242,
    "g": 232,
    "b": 102
  },
  "hsl": {
    "h": 55.714,
    "s": 84.337,
    "l": 67.451
  },
  "oklch": {
    "l": 0.91445,
    "c": 0.15034,
    "h": 104.9
  },
  "luminance": 0.7755
}

Semantic roles & 50–950 ramp

primary
#F2E866
secondary
#343EC9
accent
#14E105
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18160E
muted
#86857F

Preview Lab

Preview with #F2E866

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

Preview Lab → · Contrast checker → · Palette generator →

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