#F5E962#F5E962

#F5E962 is a very light, vivid yellow. Relative luminance 0.786; OKLCH L 91.9% C 0.154 H 104.2°. Best body text is #000000 at 16.71:1 contrast (WCAG AA passes).

Color values

HEX#F5E962
RGBrgb(245, 233, 98)
HSLhsl(55, 88%, 67%)
HSVhsv(55, 60%, 96%)
CMYKcmyk(0%, 4.9%, 60%, 3.9%)
CIE-LABlab(91.04, -12.01, 65.30)
CIE-LCHlch(91.04, 66.39, 100.42°)
OKLaboklab(91.86% -0.0379 0.1496)
OKLCHoklch(91.86% 0.154 104.2)
XYZxyz(69.0021, 78.5746, 23.0846)
Luminance0.7857 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5E962 #626EF5
analogous
#F5A062 #F5E962 #B8F562
triadic
#F5E962 #62F5E9 #E962F5
tetradic
#F5E962 #62F5A0 #626EF5 #F562B8
square
#F5E962 #62F5A0 #626EF5 #F562B8
split-complementary
#F5E962 #62B8F5 #A062F5
monochromatic
#CFC00D #F1E128 #F5E962 #F9F19C #FCF9D5

Accessibility & contrast

On white

1.26
#F5E962 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.71
#F5E962 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5E962
16.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5E962#FFFFFF#000000##000000
##F5E9621.001.2616.7116.71
#FFFFFF1.261.0021.0021.00
#00000016.7121.001.001.00
##00000016.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#FCE253
Deuteranopia (green-blind)
#FFE869
Tritanopia (blue-blind)
#FFDBCC
Achromatopsia (no color)
#E5E5E5

Design tokens & code

CSS
--color: #f5e962;
/* rgb */ color: rgb(245, 233, 98);
/* oklch */ color: oklch(91.9% 0.154 104.2);
Tailwind
colors: {
  custom: {
    50: '#fbef94',
    500: '#f5e962',
    950: '#000000',
  },
}
SCSS
$custom: #f5e962;
$custom-light: #fbef94;
$custom-dark: #000000;
JSON
{
  "hex": "#f5e962",
  "rgb": {
    "r": 245,
    "g": 233,
    "b": 98
  },
  "hsl": {
    "h": 55.102,
    "s": 88.024,
    "l": 67.255
  },
  "oklch": {
    "l": 0.91864,
    "c": 0.15435,
    "h": 104.2
  },
  "luminance": 0.78572
}

Semantic roles & 50–950 ramp

primary
#F5E962
secondary
#303DCB
accent
#13E501
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18160D
muted
#86857F

Preview Lab

Preview with #F5E962

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

Preview Lab → · Contrast checker → · Palette generator →

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