#F5E974#F5E974

#F5E974 is a very light, vivid yellow. Relative luminance 0.790; OKLCH L 92.1% C 0.139 H 103.4°. Best body text is #000000 at 16.79:1 contrast (WCAG AA passes).

Color values

HEX#F5E974
RGBrgb(245, 233, 116)
HSLhsl(54, 87%, 71%)
HSVhsv(54, 53%, 96%)
CMYKcmyk(0%, 4.9%, 52.7%, 3.9%)
CIE-LABlab(91.21, -10.70, 57.55)
CIE-LCHlch(91.21, 58.54, 100.53°)
OKLaboklab(92.06% -0.0323 0.1351)
OKLCHoklch(92.06% 0.139 103.4)
XYZxyz(69.9496, 78.9536, 28.0745)
Luminance0.7895 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5E974 #7480F5
analogous
#F5A874 #F5E974 #C0F574
triadic
#F5E974 #74F5E9 #E974F5
tetradic
#F5E974 #74F5A8 #7480F5 #F574C0
square
#F5E974 #74F5A8 #7480F5 #F574C0
split-complementary
#F5E974 #74C0F5 #A874F5
monochromatic
#DFCB10 #F1E03B #F5E974 #F9F2AD #FDFAE2

Accessibility & contrast

On white

1.25
#F5E974 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.79
#F5E974 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5E974
16.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5E974#FFFFFF#000000##000000
##F5E9741.001.2516.7916.79
#FFFFFF1.251.0021.0021.00
#00000016.7921.001.001.00
##00000016.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#FBE269
Deuteranopia (green-blind)
#FFE97A
Tritanopia (blue-blind)
#FFDCCF
Achromatopsia (no color)
#E6E6E6

Design tokens & code

CSS
--color: #f5e974;
/* rgb */ color: rgb(245, 233, 116);
/* oklch */ color: oklch(92.1% 0.139 103.4);
Tailwind
colors: {
  custom: {
    50: '#fbef9f',
    500: '#f5e974',
    950: '#000000',
  },
}
SCSS
$custom: #f5e974;
$custom-light: #fbef9f;
$custom-dark: #000000;
JSON
{
  "hex": "#f5e974",
  "rgb": {
    "r": 245,
    "g": 233,
    "b": 116
  },
  "hsl": {
    "h": 54.419,
    "s": 86.577,
    "l": 70.784
  },
  "oklch": {
    "l": 0.92055,
    "c": 0.13886,
    "h": 103.4
  },
  "luminance": 0.78951
}

Semantic roles & 50–950 ramp

primary
#F5E974
secondary
#3E4BD0
accent
#17E302
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18160F
muted
#868580

Preview Lab

Preview with #F5E974

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

Preview Lab → · Contrast checker → · Palette generator →

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