#F5E862#F5E862

#F5E862 is a very light, vivid yellow. Relative luminance 0.780; OKLCH L 91.7% C 0.153 H 103.8°. Best body text is #000000 at 16.60:1 contrast (WCAG AA passes).

Color values

HEX#F5E862
RGBrgb(245, 232, 98)
HSLhsl(55, 88%, 67%)
HSVhsv(55, 60%, 96%)
CMYKcmyk(0%, 5.3%, 60%, 3.9%)
CIE-LABlab(90.78, -11.51, 65.02)
CIE-LCHlch(90.78, 66.03, 100.04°)
OKLaboklab(91.66% -0.0365 0.149)
OKLCHoklch(91.66% 0.153 103.8)
XYZxyz(68.7199, 78.0100, 22.9905)
Luminance0.7801 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5E862 #626FF5
analogous
#F59F62 #F5E862 #B8F562
triadic
#F5E862 #62F5E8 #E862F5
tetradic
#F5E862 #62F59F #626FF5 #F562B8
square
#F5E862 #62F59F #626FF5 #F562B8
split-complementary
#F5E862 #62B8F5 #9F62F5
monochromatic
#CFBE0D #F1E028 #F5E862 #F9F09C #FCF9D5

Accessibility & contrast

On white

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

On black

16.60
#F5E862 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5E862
16.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5E862#FFFFFF#000000##000000
##F5E8621.001.2616.6016.60
#FFFFFF1.261.0021.0021.00
#00000016.6021.001.001.00
##00000016.6021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f5e862;
/* rgb */ color: rgb(245, 232, 98);
/* oklch */ color: oklch(91.7% 0.153 103.8);
Tailwind
colors: {
  custom: {
    50: '#fbef94',
    500: '#f5e862',
    950: '#000000',
  },
}
SCSS
$custom: #f5e862;
$custom-light: #fbef94;
$custom-dark: #000000;
JSON
{
  "hex": "#f5e862",
  "rgb": {
    "r": 245,
    "g": 232,
    "b": 98
  },
  "hsl": {
    "h": 54.694,
    "s": 88.024,
    "l": 67.255
  },
  "oklch": {
    "l": 0.91659,
    "c": 0.15342,
    "h": 103.8
  },
  "luminance": 0.78008
}

Semantic roles & 50–950 ramp

primary
#F5E862
secondary
#303ECB
accent
#15E501
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18160D
muted
#86857F

Preview Lab

Preview with #F5E862

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

Preview Lab → · Contrast checker → · Palette generator →

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