#F0CC58#F0CC58

#F0CC58 is a very light, vivid yellow. Relative luminance 0.624; OKLCH L 85.5% C 0.139 H 91.9°. Best body text is #000000 at 13.48:1 contrast (WCAG AA passes).

Color values

HEX#F0CC58
RGBrgb(240, 204, 88)
HSLhsl(46, 84%, 64%)
HSVhsv(46, 63%, 94%)
CMYKcmyk(0%, 15%, 63.3%, 5.9%)
CIE-LABlab(83.14, -0.08, 60.84)
CIE-LCHlch(83.14, 60.84, 90.08°)
OKLaboklab(85.47% -0.0046 0.1389)
OKLCHoklch(85.47% 0.139 91.9)
XYZxyz(59.2924, 62.4188, 18.1556)
Luminance0.6242 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0CC58 #587CF0
analogous
#F08058 #F0CC58 #C8F058
triadic
#F0CC58 #58F0CC #CC58F0
tetradic
#F0CC58 #58F080 #587CF0 #F058C8
square
#F0CC58 #58F080 #587CF0 #F058C8
split-complementary
#F0CC58 #58C8F0 #8058F0
monochromatic
#BD9411 #EBBB20 #F0CC58 #F5DD90 #FAEEC8

Accessibility & contrast

On white

1.56
#F0CC58 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.48
#F0CC58 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0CC58
13.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0CC58#FFFFFF#000000##000000
##F0CC581.001.5613.4813.48
#FFFFFF1.561.0021.0021.00
#00000013.4821.001.001.00
##00000013.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#E0C94B
Deuteranopia (green-blind)
#E9D35D
Tritanopia (blue-blind)
#FFBDB3
Achromatopsia (no color)
#CFCFCF

Design tokens & code

CSS
--color: #f0cc58;
/* rgb */ color: rgb(240, 204, 88);
/* oklch */ color: oklch(85.5% 0.139 91.9);
Tailwind
colors: {
  custom: {
    50: '#f8db8c',
    500: '#f0cc58',
    950: '#000000',
  },
}
SCSS
$custom: #f0cc58;
$custom-light: #f8db8c;
$custom-dark: #000000;
JSON
{
  "hex": "#f0cc58",
  "rgb": {
    "r": 240,
    "g": 204,
    "b": 88
  },
  "hsl": {
    "h": 45.789,
    "s": 83.516,
    "l": 64.314
  },
  "oklch": {
    "l": 0.85469,
    "c": 0.13897,
    "h": 91.9
  },
  "luminance": 0.62416
}

Semantic roles & 50–950 ramp

primary
#F0CC58
secondary
#3152BB
accent
#39E006
background
#FFFEFC
surface
#FFFBF4
border
#D7D4CE
text
#18140C
muted
#86837F

Preview Lab

Preview with #F0CC58

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

Preview Lab → · Contrast checker → · Palette generator →

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