#F2E786#F2E786

#F2E786 is a very light, moderate yellow. Relative luminance 0.777; OKLCH L 91.6% C 0.119 H 102.8°. Best body text is #000000 at 16.55:1 contrast (WCAG AA passes).

Color values

HEX#F2E786
RGBrgb(242, 231, 134)
HSLhsl(54, 81%, 74%)
HSVhsv(54, 45%, 95%)
CMYKcmyk(0%, 4.5%, 44.6%, 5.1%)
CIE-LABlab(90.67, -9.32, 48.36)
CIE-LCHlch(90.67, 49.25, 100.91°)
OKLaboklab(91.63% -0.0264 0.1163)
OKLCHoklch(91.63% 0.119 102.8)
XYZxyz(69.4985, 77.7524, 33.8964)
Luminance0.7775 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2E786 #8691F2
analogous
#F2B186 #F2E786 #C7F286
triadic
#F2E786 #86F2E7 #E786F2
tetradic
#F2E786 #86F2B1 #8691F2 #F286C7
square
#F2E786 #86F2B1 #8691F2 #F286C7
split-complementary
#F2E786 #86C7F2 #B186F2
monochromatic
#E5D019 #ECDC4F #F2E786 #F8F2BD #FCFAE3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##F2E786#FFFFFF#000000##000000
##F2E7861.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)
#F7E17E
Deuteranopia (green-blind)
#FAE78A
Tritanopia (blue-blind)
#FFDBD0
Achromatopsia (no color)
#E4E4E4

Design tokens & code

CSS
--color: #f2e786;
/* rgb */ color: rgb(242, 231, 134);
/* oklch */ color: oklch(91.6% 0.119 102.8);
Tailwind
colors: {
  custom: {
    50: '#f8eeab',
    500: '#f2e786',
    950: '#000000',
  },
}
SCSS
$custom: #f2e786;
$custom-light: #f8eeab;
$custom-dark: #000000;
JSON
{
  "hex": "#f2e786",
  "rgb": {
    "r": 242,
    "g": 231,
    "b": 134
  },
  "hsl": {
    "h": 53.889,
    "s": 80.597,
    "l": 73.725
  },
  "oklch": {
    "l": 0.91631,
    "c": 0.11929,
    "h": 102.8
  },
  "luminance": 0.7775
}

Semantic roles & 50–950 ramp

primary
#F2E786
secondary
#4E5BCE
accent
#1EDD09
background
#FFFFFD
surface
#FFFEF7
border
#D7D6D0
text
#171610
muted
#858581

Preview Lab

Preview with #F2E786

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

Preview Lab → · Contrast checker → · Palette generator →

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