#F5D162#F5D162

#F5D162 is a very light, vivid yellow. Relative luminance 0.659; OKLCH L 87.0% C 0.135 H 91.4°. Best body text is #000000 at 14.18:1 contrast (WCAG AA passes).

Color values

HEX#F5D162
RGBrgb(245, 209, 98)
HSLhsl(45, 88%, 67%)
HSVhsv(45, 60%, 96%)
CMYKcmyk(0%, 14.7%, 60%, 3.9%)
CIE-LABlab(84.94, 0.07, 58.54)
CIE-LCHlch(84.94, 58.54, 89.93°)
OKLaboklab(87.03% -0.0033 0.1352)
OKLCHoklch(87.03% 0.135 91.4)
XYZxyz(62.6641, 65.8986, 20.9719)
Luminance0.6590 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5D162 #6286F5
analogous
#F58862 #F5D162 #D0F562
triadic
#F5D162 #62F5D1 #D162F5
tetradic
#F5D162 #62F588 #6286F5 #F562D0
square
#F5D162 #62F588 #6286F5 #F562D0
split-complementary
#F5D162 #62D0F5 #8862F5
monochromatic
#CFA00D #F1C028 #F5D162 #F9E29C #FCF3D5

Accessibility & contrast

On white

1.48
#F5D162 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.18
#F5D162 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5D162
14.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5D162#FFFFFF#000000##000000
##F5D1621.001.4814.1814.18
#FFFFFF1.481.0021.0021.00
#00000014.1821.001.001.00
##00000014.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#E5CE57
Deuteranopia (green-blind)
#EED967
Tritanopia (blue-blind)
#FFC2B9
Achromatopsia (no color)
#D4D4D4

Design tokens & code

CSS
--color: #f5d162;
/* rgb */ color: rgb(245, 209, 98);
/* oklch */ color: oklch(87.0% 0.135 91.4);
Tailwind
colors: {
  custom: {
    50: '#fcde92',
    500: '#f5d162',
    950: '#000000',
  },
}
SCSS
$custom: #f5d162;
$custom-light: #fcde92;
$custom-dark: #000000;
JSON
{
  "hex": "#f5d162",
  "rgb": {
    "r": 245,
    "g": 209,
    "b": 98
  },
  "hsl": {
    "h": 45.306,
    "s": 88.024,
    "l": 67.255
  },
  "oklch": {
    "l": 0.87034,
    "c": 0.13523,
    "h": 91.4
  },
  "luminance": 0.65895
}

Semantic roles & 50–950 ramp

primary
#F5D162
secondary
#3056CB
accent
#39E501
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150D
muted
#86847F

Preview Lab

Preview with #F5D162

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

Preview Lab → · Contrast checker → · Palette generator →

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