#F0CC56#F0CC56

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

Color values

HEX#F0CC56
RGBrgb(240, 204, 86)
HSLhsl(46, 84%, 64%)
HSVhsv(46, 64%, 94%)
CMYKcmyk(0%, 15%, 64.2%, 5.9%)
CIE-LABlab(83.12, -0.21, 61.69)
CIE-LCHlch(83.12, 61.69, 90.19°)
OKLaboklab(85.45% -0.0052 0.1404)
OKLCHoklch(85.45% 0.141 92.1)
XYZxyz(59.2106, 62.3861, 17.7253)
Luminance0.6238 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0CC56 #567AF0
analogous
#F07F56 #F0CC56 #C7F056
triadic
#F0CC56 #56F0CC #CC56F0
tetradic
#F0CC56 #56F07F #567AF0 #F056C7
square
#F0CC56 #56F07F #567AF0 #F056C7
split-complementary
#F0CC56 #56C7F0 #7F56F0
monochromatic
#BB9311 #EBBB1E #F0CC56 #F5DD8E #FAEEC6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##F0CC56#FFFFFF#000000##000000
##F0CC561.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)
#E1C948
Deuteranopia (green-blind)
#E9D35B
Tritanopia (blue-blind)
#FFBDB3
Achromatopsia (no color)
#CFCFCF

Design tokens & code

CSS
--color: #f0cc56;
/* rgb */ color: rgb(240, 204, 86);
/* oklch */ color: oklch(85.4% 0.141 92.1);
Tailwind
colors: {
  custom: {
    50: '#f9db8a',
    500: '#f0cc56',
    950: '#000000',
  },
}
SCSS
$custom: #f0cc56;
$custom-light: #f9db8a;
$custom-dark: #000000;
JSON
{
  "hex": "#f0cc56",
  "rgb": {
    "r": 240,
    "g": 204,
    "b": 86
  },
  "hsl": {
    "h": 45.974,
    "s": 83.696,
    "l": 63.922
  },
  "oklch": {
    "l": 0.85449,
    "c": 0.1405,
    "h": 92.1
  },
  "luminance": 0.62383
}

Semantic roles & 50–950 ramp

primary
#F0CC56
secondary
#3051BA
accent
#39E005
background
#FFFEFC
surface
#FFFBF4
border
#D7D4CE
text
#18140C
muted
#86837F

Preview Lab

Preview with #F0CC56

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

Preview Lab → · Contrast checker → · Palette generator →

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