#F5F962#F5F962

#F5F962 is a very light, vivid yellow. Relative luminance 0.880; OKLCH L 95.2% C 0.170 H 110.7°. Best body text is #000000 at 18.61:1 contrast (WCAG AA passes).

Color values

HEX#F5F962
RGBrgb(245, 249, 98)
HSLhsl(62, 93%, 68%)
HSVhsv(62, 61%, 98%)
CMYKcmyk(1.6%, 0%, 60.6%, 2.4%)
CIE-LABlab(95.18, -19.80, 69.78)
CIE-LCHlch(95.18, 72.53, 105.84°)
OKLaboklab(95.16% -0.06 0.1591)
OKLCHoklch(95.16% 0.17 110.7)
XYZxyz(73.7386, 88.0475, 24.6634)
Luminance0.8805 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5F962 #6662F9
analogous
#F9B162 #F5F962 #AAF962
triadic
#F5F962 #62F5F9 #F962F5
tetradic
#F5F962 #62F9B1 #6662F9 #F962AA
square
#F5F962 #62F9B1 #6662F9 #F962AA
split-complementary
#F5F962 #62AAF9 #B162F9
monochromatic
#D3D808 #F1F727 #F5F962 #F9FB9D #FDFED8

Accessibility & contrast

On white

1.13
#F5F962 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.61
#F5F962 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5F962
18.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5F962#FFFFFF#000000##000000
##F5F9621.001.1318.6118.61
#FFFFFF1.131.0021.0021.00
#00000018.6121.001.001.00
##00000018.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEF50
Deuteranopia (green-blind)
#FFF36B
Tritanopia (blue-blind)
#FFEBD9
Achromatopsia (no color)
#F1F1F1

Design tokens & code

CSS
--color: #f5f962;
/* rgb */ color: rgb(245, 249, 98);
/* oklch */ color: oklch(95.2% 0.170 110.7);
Tailwind
colors: {
  custom: {
    50: '#fcfb95',
    500: '#f5f962',
    950: '#000000',
  },
}
SCSS
$custom: #f5f962;
$custom-light: #fcfb95;
$custom-dark: #000000;
JSON
{
  "hex": "#f5f962",
  "rgb": {
    "r": 245,
    "g": 249,
    "b": 98
  },
  "hsl": {
    "h": 61.589,
    "s": 92.638,
    "l": 68.039
  },
  "oklch": {
    "l": 0.95163,
    "c": 0.17004,
    "h": 110.7
  },
  "luminance": 0.88046
}

Semantic roles & 50–950 ramp

primary
#F5F962
secondary
#312DD2
accent
#00E606
background
#FFFFFC
surface
#FFFFF5
border
#D7D7CF
text
#18170E
muted
#86857F

Preview Lab

Preview with #F5F962

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

Preview Lab → · Contrast checker → · Palette generator →

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