#F5E166#F5E166

#F5E166 is a very light, vivid yellow. Relative luminance 0.742; OKLCH L 90.3% C 0.144 H 100.2°. Best body text is #000000 at 15.84:1 contrast (WCAG AA passes).

Color values

HEX#F5E166
RGBrgb(245, 225, 102)
HSLhsl(52, 88%, 68%)
HSVhsv(52, 58%, 96%)
CMYKcmyk(0%, 8.2%, 58.4%, 3.9%)
CIE-LABlab(89.03, -7.76, 61.34)
CIE-LCHlch(89.03, 61.83, 97.21°)
OKLaboklab(90.28% -0.0254 0.1417)
OKLCHoklch(90.28% 0.144 100.2)
XYZxyz(66.9822, 74.2249, 23.3664)
Luminance0.7422 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5E166 #667AF5
analogous
#F59966 #F5E166 #C2F566
triadic
#F5E166 #66F5E1 #E166F5
tetradic
#F5E166 #66F599 #667AF5 #F566C2
square
#F5E166 #66F599 #667AF5 #F566C2
split-complementary
#F5E166 #66C2F5 #9966F5
monochromatic
#D3B70E #F1D62D #F5E166 #F9EC9F #FDF8D9

Accessibility & contrast

On white

1.33
#F5E166 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.84
#F5E166 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5E166
15.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5E166#FFFFFF#000000##000000
##F5E1661.001.3315.8415.84
#FFFFFF1.331.0021.0021.00
#00000015.8421.001.001.00
##00000015.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#F4DB59
Deuteranopia (green-blind)
#FAE36C
Tritanopia (blue-blind)
#FFD3C6
Achromatopsia (no color)
#E0E0E0

Design tokens & code

CSS
--color: #f5e166;
/* rgb */ color: rgb(245, 225, 102);
/* oklch */ color: oklch(90.3% 0.144 100.2);
Tailwind
colors: {
  custom: {
    50: '#fbea96',
    500: '#f5e166',
    950: '#000000',
  },
}
SCSS
$custom: #f5e166;
$custom-light: #fbea96;
$custom-dark: #000000;
JSON
{
  "hex": "#f5e166",
  "rgb": {
    "r": 245,
    "g": 225,
    "b": 102
  },
  "hsl": {
    "h": 51.608,
    "s": 87.73,
    "l": 68.039
  },
  "oklch": {
    "l": 0.90277,
    "c": 0.14395,
    "h": 100.2
  },
  "luminance": 0.74222
}

Semantic roles & 50–950 ramp

primary
#F5E166
secondary
#3147CE
accent
#21E401
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18160E
muted
#86847F

Preview Lab

Preview with #F5E166

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

Preview Lab → · Contrast checker → · Palette generator →

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