#F5E278#F5E278

#F5E278 is a very light, vivid yellow. Relative luminance 0.752; OKLCH L 90.7% C 0.129 H 99.3°. Best body text is #000000 at 16.03:1 contrast (WCAG AA passes).

Color values

HEX#F5E278
RGBrgb(245, 226, 120)
HSLhsl(51, 86%, 72%)
HSVhsv(51, 51%, 96%)
CMYKcmyk(0%, 7.8%, 51%, 3.9%)
CIE-LABlab(89.47, -6.88, 53.64)
CIE-LCHlch(89.47, 54.08, 97.31°)
OKLaboklab(90.69% -0.0209 0.1269)
OKLCHoklch(90.69% 0.129 99.3)
XYZxyz(68.2449, 75.1638, 28.6789)
Luminance0.7516 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5E278 #788BF5
analogous
#F5A478 #F5E278 #CAF578
triadic
#F5E278 #78F5E2 #E278F5
tetradic
#F5E278 #78F5A4 #788BF5 #F578CA
square
#F5E278 #78F5A4 #788BF5 #F578CA
split-complementary
#F5E278 #78CAF5 #A478F5
monochromatic
#E2C211 #F1D63F #F5E278 #F9EEB1 #FDF9E3

Accessibility & contrast

On white

1.31
#F5E278 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.03
#F5E278 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5E278
16.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5E278#FFFFFF#000000##000000
##F5E2781.001.3116.0316.03
#FFFFFF1.311.0021.0021.00
#00000016.0321.001.001.00
##00000016.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#F4DD6F
Deuteranopia (green-blind)
#F9E47D
Tritanopia (blue-blind)
#FFD5C9
Achromatopsia (no color)
#E1E1E1

Design tokens & code

CSS
--color: #f5e278;
/* rgb */ color: rgb(245, 226, 120);
/* oklch */ color: oklch(90.7% 0.129 99.3);
Tailwind
colors: {
  custom: {
    50: '#fbeaa1',
    500: '#f5e278',
    950: '#000000',
  },
}
SCSS
$custom: #f5e278;
$custom-light: #fbeaa1;
$custom-dark: #000000;
JSON
{
  "hex": "#f5e278",
  "rgb": {
    "r": 245,
    "g": 226,
    "b": 120
  },
  "hsl": {
    "h": 50.88,
    "s": 86.207,
    "l": 71.569
  },
  "oklch": {
    "l": 0.90686,
    "c": 0.12862,
    "h": 99.3
  },
  "luminance": 0.75161
}

Semantic roles & 50–950 ramp

primary
#F5E278
secondary
#4157D0
accent
#25E303
background
#FFFEFC
surface
#FFFDF5
border
#D7D5CF
text
#18160F
muted
#868480

Preview Lab

Preview with #F5E278

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

Preview Lab → · Contrast checker → · Palette generator →

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