#F0E766#F0E766

#F0E766 is a very light, vivid yellow. Relative luminance 0.766; OKLCH L 91.1% C 0.150 H 105.3°. Best body text is #000000 at 16.33:1 contrast (WCAG AA passes).

Color values

HEX#F0E766
RGBrgb(240, 231, 102)
HSLhsl(56, 82%, 67%)
HSVhsv(56, 58%, 94%)
CMYKcmyk(0%, 3.7%, 57.5%, 5.9%)
CIE-LABlab(90.16, -12.77, 62.49)
CIE-LCHlch(90.16, 63.78, 101.55°)
OKLaboklab(91.07% -0.0394 0.1442)
OKLCHoklch(91.07% 0.15 105.3)
XYZxyz(66.9115, 76.6386, 23.8359)
Luminance0.7664 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0E766 #666FF0
analogous
#F0A266 #F0E766 #B4F066
triadic
#F0E766 #66F0E7 #E766F0
tetradic
#F0E766 #66F0A2 #666FF0 #F066B4
square
#F0E766 #66F0A2 #666FF0 #F066B4
split-complementary
#F0E766 #66B4F0 #A266F0
monochromatic
#C8BC14 #EBDE2E #F0E766 #F5F09E #FBF8D5

Accessibility & contrast

On white

1.29
#F0E766 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.33
#F0E766 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0E766
16.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0E766#FFFFFF#000000##000000
##F0E7661.001.2916.3316.33
#FFFFFF1.291.0021.0021.00
#00000016.3321.001.001.00
##00000016.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#F9DF58
Deuteranopia (green-blind)
#FCE66D
Tritanopia (blue-blind)
#FFD9CB
Achromatopsia (no color)
#E3E3E3

Design tokens & code

CSS
--color: #f0e766;
/* rgb */ color: rgb(240, 231, 102);
/* oklch */ color: oklch(91.1% 0.150 105.3);
Tailwind
colors: {
  custom: {
    50: '#f8ee96',
    500: '#f0e766',
    950: '#000000',
  },
}
SCSS
$custom: #f0e766;
$custom-light: #f8ee96;
$custom-dark: #000000;
JSON
{
  "hex": "#f0e766",
  "rgb": {
    "r": 240,
    "g": 231,
    "b": 102
  },
  "hsl": {
    "h": 56.087,
    "s": 82.143,
    "l": 67.059
  },
  "oklch": {
    "l": 0.91072,
    "c": 0.14952,
    "h": 105.3
  },
  "luminance": 0.76636
}

Semantic roles & 50–950 ramp

primary
#F0E766
secondary
#353FC5
accent
#15DF07
background
#FFFEFC
surface
#FFFDF5
border
#D7D5CF
text
#18160E
muted
#86847F

Preview Lab

Preview with #F0E766

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

Preview Lab → · Contrast checker → · Palette generator →

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