#F5E178#F5E178

#F5E178 is a very light, vivid yellow. Relative luminance 0.746; OKLCH L 90.5% C 0.128 H 98.8°. Best body text is #000000 at 15.92:1 contrast (WCAG AA passes).

Color values

HEX#F5E178
RGBrgb(245, 225, 120)
HSLhsl(50, 86%, 72%)
HSVhsv(50, 51%, 96%)
CMYKcmyk(0%, 8.2%, 51%, 3.9%)
CIE-LABlab(89.22, -6.38, 53.34)
CIE-LCHlch(89.22, 53.72, 96.82°)
OKLaboklab(90.49% -0.0194 0.1263)
OKLCHoklch(90.49% 0.128 98.8)
XYZxyz(67.9737, 74.6216, 28.5885)
Luminance0.7462 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5E178 #788CF5
analogous
#F5A378 #F5E178 #CBF578
triadic
#F5E178 #78F5E1 #E178F5
tetradic
#F5E178 #78F5A3 #788CF5 #F578CB
square
#F5E178 #78F5A3 #788CF5 #F578CB
split-complementary
#F5E178 #78CBF5 #A378F5
monochromatic
#E2C011 #F1D43F #F5E178 #F9EEB1 #FDF9E3

Accessibility & contrast

On white

1.32
#F5E178 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.92
#F5E178 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5E178
15.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5E178#FFFFFF#000000##000000
##F5E1781.001.3215.9215.92
#FFFFFF1.321.0021.0021.00
#00000015.9221.001.001.00
##00000015.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#F3DC6F
Deuteranopia (green-blind)
#F8E37D
Tritanopia (blue-blind)
#FFD4C9
Achromatopsia (no color)
#E0E0E0

Design tokens & code

CSS
--color: #f5e178;
/* rgb */ color: rgb(245, 225, 120);
/* oklch */ color: oklch(90.5% 0.128 98.8);
Tailwind
colors: {
  custom: {
    50: '#fbeaa1',
    500: '#f5e178',
    950: '#000000',
  },
}
SCSS
$custom: #f5e178;
$custom-light: #fbeaa1;
$custom-dark: #000000;
JSON
{
  "hex": "#f5e178",
  "rgb": {
    "r": 245,
    "g": 225,
    "b": 120
  },
  "hsl": {
    "h": 50.4,
    "s": 86.207,
    "l": 71.569
  },
  "oklch": {
    "l": 0.90485,
    "c": 0.12774,
    "h": 98.8
  },
  "luminance": 0.74619
}

Semantic roles & 50–950 ramp

primary
#F5E178
secondary
#4158D0
accent
#27E303
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18160F
muted
#868480

Preview Lab

Preview with #F5E178

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

Preview Lab → · Contrast checker → · Palette generator →

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