#F0CD52#F0CD52

#F0CD52 is a very light, vivid yellow. Relative luminance 0.628; OKLCH L 85.6% C 0.144 H 93.1°. Best body text is #000000 at 13.56:1 contrast (WCAG AA passes).

Color values

HEX#F0CD52
RGBrgb(240, 205, 82)
HSLhsl(47, 84%, 63%)
HSVhsv(47, 66%, 94%)
CMYKcmyk(0%, 14.6%, 65.8%, 5.9%)
CIE-LABlab(83.34, -0.95, 63.62)
CIE-LCHlch(83.34, 63.63, 90.86°)
OKLaboklab(85.61% -0.0078 0.1439)
OKLCHoklch(85.61% 0.144 93.1)
XYZxyz(59.2924, 62.8003, 16.9796)
Luminance0.6280 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0CD52 #5275F0
analogous
#F07E52 #F0CD52 #C4F052
triadic
#F0CD52 #52F0CD #CD52F0
tetradic
#F0CD52 #52F07E #5275F0 #F052C4
square
#F0CD52 #52F07E #5275F0 #F052C4
split-complementary
#F0CD52 #52C4F0 #7E52F0
monochromatic
#B89310 #EBBD1A #F0CD52 #F5DD8A #FAEEC3

Accessibility & contrast

On white

1.55
#F0CD52 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.56
#F0CD52 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0CD52
13.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0CD52#FFFFFF#000000##000000
##F0CD521.001.5513.5613.56
#FFFFFF1.551.0021.0021.00
#00000013.5621.001.001.00
##00000013.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#E2CA43
Deuteranopia (green-blind)
#EAD458
Tritanopia (blue-blind)
#FFBEB3
Achromatopsia (no color)
#D0D0D0

Design tokens & code

CSS
--color: #f0cd52;
/* rgb */ color: rgb(240, 205, 82);
/* oklch */ color: oklch(85.6% 0.144 93.1);
Tailwind
colors: {
  custom: {
    50: '#f9db88',
    500: '#f0cd52',
    950: '#000000',
  },
}
SCSS
$custom: #f0cd52;
$custom-light: #f9db88;
$custom-dark: #000000;
JSON
{
  "hex": "#f0cd52",
  "rgb": {
    "r": 240,
    "g": 205,
    "b": 82
  },
  "hsl": {
    "h": 46.709,
    "s": 84.043,
    "l": 63.137
  },
  "oklch": {
    "l": 0.85612,
    "c": 0.1441,
    "h": 93.1
  },
  "luminance": 0.62797
}

Semantic roles & 50–950 ramp

primary
#F0CD52
secondary
#2F4DB7
accent
#36E005
background
#FFFEFC
surface
#FFFBF4
border
#D7D4CE
text
#18150C
muted
#86847F

Preview Lab

Preview with #F0CD52

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

Preview Lab → · Contrast checker → · Palette generator →

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