#F5D852#F5D852

#F5D852 is a very light, vivid yellow. Relative luminance 0.691; OKLCH L 88.3% C 0.152 H 96.9°. Best body text is #000000 at 14.83:1 contrast (WCAG AA passes).

Color values

HEX#F5D852
RGBrgb(245, 216, 82)
HSLhsl(49, 89%, 64%)
HSVhsv(49, 67%, 96%)
CMYKcmyk(0%, 11.8%, 66.5%, 3.9%)
CIE-LABlab(86.57, -4.47, 67.15)
CIE-LCHlch(86.57, 67.29, 93.81°)
OKLaboklab(88.28% -0.0182 0.1512)
OKLCHoklch(88.28% 0.152 96.9)
XYZxyz(63.7380, 69.1366, 17.9684)
Luminance0.6913 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5D852 #526FF5
analogous
#F58752 #F5D852 #C1F552
triadic
#F5D852 #52F5D8 #D852F5
tetradic
#F5D852 #52F587 #526FF5 #F552C1
square
#F5D852 #52F587 #526FF5 #F552C1
split-complementary
#F5D852 #52C1F5 #8752F5
monochromatic
#C1A10B #F2CB18 #F5D852 #F8E58C #FCF2C6

Accessibility & contrast

On white

1.42
#F5D852 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.83
#F5D852 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5D852
14.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5D852#FFFFFF#000000##000000
##F5D8521.001.4214.8314.83
#FFFFFF1.421.0021.0021.00
#00000014.8321.001.001.00
##00000014.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#EDD341
Deuteranopia (green-blind)
#F4DD59
Tritanopia (blue-blind)
#FFC8BC
Achromatopsia (no color)
#D9D9D9

Design tokens & code

CSS
--color: #f5d852;
/* rgb */ color: rgb(245, 216, 82);
/* oklch */ color: oklch(88.3% 0.152 96.9);
Tailwind
colors: {
  custom: {
    50: '#fce389',
    500: '#f5d852',
    950: '#000000',
  },
}
SCSS
$custom: #f5d852;
$custom-light: #fce389;
$custom-dark: #000000;
JSON
{
  "hex": "#f5d852",
  "rgb": {
    "r": 245,
    "g": 216,
    "b": 82
  },
  "hsl": {
    "h": 49.325,
    "s": 89.071,
    "l": 64.118
  },
  "oklch": {
    "l": 0.88276,
    "c": 0.15229,
    "h": 96.9
  },
  "luminance": 0.69133
}

Semantic roles & 50–950 ramp

primary
#F5D852
secondary
#2C46BF
accent
#29E600
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150C
muted
#86847F

Preview Lab

Preview with #F5D852

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

Preview Lab → · Contrast checker → · Palette generator →

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