#F5D862#F5D862

#F5D862 is a very light, vivid yellow. Relative luminance 0.694; OKLCH L 88.4% C 0.140 H 95.6°. Best body text is #000000 at 14.88:1 contrast (WCAG AA passes).

Color values

HEX#F5D862
RGBrgb(245, 216, 98)
HSLhsl(48, 88%, 67%)
HSVhsv(48, 60%, 96%)
CMYKcmyk(0%, 11.8%, 60%, 3.9%)
CIE-LABlab(86.71, -3.50, 60.51)
CIE-LCHlch(86.71, 60.61, 93.31°)
OKLaboklab(88.43% -0.0136 0.1394)
OKLCHoklch(88.43% 0.14 95.6)
XYZxyz(64.4194, 69.4091, 21.5570)
Luminance0.6941 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5D862 #627FF5
analogous
#F58E62 #F5D862 #C9F562
triadic
#F5D862 #62F5D8 #D862F5
tetradic
#F5D862 #62F58E #627FF5 #F562C9
square
#F5D862 #62F58E #627FF5 #F562C9
split-complementary
#F5D862 #62C9F5 #8E62F5
monochromatic
#CFA90D #F1CA28 #F5D862 #F9E69C #FCF5D5

Accessibility & contrast

On white

1.41
#F5D862 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.88
#F5D862 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5D862
14.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5D862#FFFFFF#000000##000000
##F5D8621.001.4114.8814.88
#FFFFFF1.411.0021.0021.00
#00000014.8821.001.001.00
##00000014.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#ECD455
Deuteranopia (green-blind)
#F3DD68
Tritanopia (blue-blind)
#FFC9BE
Achromatopsia (no color)
#D9D9D9

Design tokens & code

CSS
--color: #f5d862;
/* rgb */ color: rgb(245, 216, 98);
/* oklch */ color: oklch(88.4% 0.140 95.6);
Tailwind
colors: {
  custom: {
    50: '#fce393',
    500: '#f5d862',
    950: '#000000',
  },
}
SCSS
$custom: #f5d862;
$custom-light: #fce393;
$custom-dark: #000000;
JSON
{
  "hex": "#f5d862",
  "rgb": {
    "r": 245,
    "g": 216,
    "b": 98
  },
  "hsl": {
    "h": 48.163,
    "s": 88.024,
    "l": 67.255
  },
  "oklch": {
    "l": 0.88425,
    "c": 0.14007,
    "h": 95.6
  },
  "luminance": 0.69406
}

Semantic roles & 50–950 ramp

primary
#F5D862
secondary
#304FCB
accent
#2EE501
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150D
muted
#86847F

Preview Lab

Preview with #F5D862

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

Preview Lab → · Contrast checker → · Palette generator →

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