#F5E474#F5E474

#F5E474 is a very light, vivid yellow. Relative luminance 0.762; OKLCH L 91.0% C 0.134 H 100.8°. Best body text is #000000 at 16.23:1 contrast (WCAG AA passes).

Color values

HEX#F5E474
RGBrgb(245, 228, 116)
HSLhsl(52, 87%, 71%)
HSVhsv(52, 53%, 96%)
CMYKcmyk(0%, 6.9%, 52.7%, 3.9%)
CIE-LABlab(89.93, -8.21, 56.06)
CIE-LCHlch(89.93, 56.66, 98.33°)
OKLaboklab(91.04% -0.0251 0.1318)
OKLCHoklch(91.04% 0.134 100.8)
XYZxyz(68.5542, 76.1627, 27.6094)
Luminance0.7616 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5E474 #7485F5
analogous
#F5A374 #F5E474 #C5F574
triadic
#F5E474 #74F5E4 #E474F5
tetradic
#F5E474 #74F5A3 #7485F5 #F574C5
square
#F5E474 #74F5A3 #7485F5 #F574C5
split-complementary
#F5E474 #74C5F5 #A374F5
monochromatic
#DFC310 #F1D93B #F5E474 #F9EFAD #FDF9E2

Accessibility & contrast

On white

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

On black

16.23
#F5E474 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5E474
16.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5E474#FFFFFF#000000##000000
##F5E4741.001.2916.2316.23
#FFFFFF1.291.0021.0021.00
#00000016.2321.001.001.00
##00000016.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#F6DE6A
Deuteranopia (green-blind)
#FBE579
Tritanopia (blue-blind)
#FFD7CA
Achromatopsia (no color)
#E2E2E2

Design tokens & code

CSS
--color: #f5e474;
/* rgb */ color: rgb(245, 228, 116);
/* oklch */ color: oklch(91.0% 0.134 100.8);
Tailwind
colors: {
  custom: {
    50: '#fbec9f',
    500: '#f5e474',
    950: '#000000',
  },
}
SCSS
$custom: #f5e474;
$custom-light: #fbec9f;
$custom-dark: #000000;
JSON
{
  "hex": "#f5e474",
  "rgb": {
    "r": 245,
    "g": 228,
    "b": 116
  },
  "hsl": {
    "h": 52.093,
    "s": 86.577,
    "l": 70.784
  },
  "oklch": {
    "l": 0.91041,
    "c": 0.13419,
    "h": 100.8
  },
  "luminance": 0.7616
}

Semantic roles & 50–950 ramp

primary
#F5E474
secondary
#3E51D0
accent
#20E302
background
#FFFEFC
surface
#FFFDF5
border
#D7D5CF
text
#18160F
muted
#868480

Preview Lab

Preview with #F5E474

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

Preview Lab → · Contrast checker → · Palette generator →

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