#F5EC78#F5EC78

#F5EC78 is a very light, vivid yellow. Relative luminance 0.808; OKLCH L 92.7% C 0.138 H 104.8°. Best body text is #000000 at 17.15:1 contrast (WCAG AA passes).

Color values

HEX#F5EC78
RGBrgb(245, 236, 120)
HSLhsl(56, 86%, 72%)
HSVhsv(56, 51%, 96%)
CMYKcmyk(0%, 3.7%, 51%, 3.9%)
CIE-LABlab(92.03, -11.86, 56.67)
CIE-LCHlch(92.03, 57.90, 101.82°)
OKLaboklab(92.72% -0.0352 0.1335)
OKLCHoklch(92.72% 0.138 104.8)
XYZxyz(71.0438, 80.7616, 29.6119)
Luminance0.8076 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5EC78 #7881F5
analogous
#F5AE78 #F5EC78 #C0F578
triadic
#F5EC78 #78F5EC #EC78F5
tetradic
#F5EC78 #78F5AE #7881F5 #F578C0
square
#F5EC78 #78F5AE #7881F5 #F578C0
split-complementary
#F5EC78 #78C0F5 #AE78F5
monochromatic
#E2D311 #F1E43F #F5EC78 #F9F4B1 #FDFBE3

Accessibility & contrast

On white

1.22
#F5EC78 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.15
#F5EC78 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5EC78
17.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5EC78#FFFFFF#000000##000000
##F5EC781.001.2217.1517.15
#FFFFFF1.221.0021.0021.00
#00000017.1521.001.001.00
##00000017.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#FDE56D
Deuteranopia (green-blind)
#FFEB7E
Tritanopia (blue-blind)
#FFDFD2
Achromatopsia (no color)
#E8E8E8

Design tokens & code

CSS
--color: #f5ec78;
/* rgb */ color: rgb(245, 236, 120);
/* oklch */ color: oklch(92.7% 0.138 104.8);
Tailwind
colors: {
  custom: {
    50: '#fbf1a2',
    500: '#f5ec78',
    950: '#000000',
  },
}
SCSS
$custom: #f5ec78;
$custom-light: #fbf1a2;
$custom-dark: #000000;
JSON
{
  "hex": "#f5ec78",
  "rgb": {
    "r": 245,
    "g": 236,
    "b": 120
  },
  "hsl": {
    "h": 55.68,
    "s": 86.207,
    "l": 71.569
  },
  "oklch": {
    "l": 0.92715,
    "c": 0.13809,
    "h": 104.8
  },
  "luminance": 0.80759
}

Semantic roles & 50–950 ramp

primary
#F5EC78
secondary
#414BD0
accent
#13E303
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18160F
muted
#868580

Preview Lab

Preview with #F5EC78

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

Preview Lab → · Contrast checker → · Palette generator →

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