#F0CC45#F0CC45

#F0CC45 is a very light, vivid yellow. Relative luminance 0.621; OKLCH L 85.3% C 0.152 H 93.7°. Best body text is #000000 at 13.43:1 contrast (WCAG AA passes).

Color values

HEX#F0CC45
RGBrgb(240, 204, 69)
HSLhsl(47, 85%, 61%)
HSVhsv(47, 71%, 94%)
CMYKcmyk(0%, 15%, 71.3%, 5.9%)
CIE-LABlab(82.99, -1.11, 68.45)
CIE-LCHlch(82.99, 68.46, 90.93°)
OKLaboklab(85.31% -0.0097 0.1519)
OKLCHoklch(85.31% 0.152 93.7)
XYZxyz(58.6053, 62.1440, 14.5372)
Luminance0.6214 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0CC45 #4569F0
analogous
#F07645 #F0CC45 #BFF045
triadic
#F0CC45 #45F0CC #CC45F0
tetradic
#F0CC45 #45F076 #4569F0 #F045BF
square
#F0CC45 #45F076 #4569F0 #F045BF
split-complementary
#F0CC45 #45BFF0 #7645F0
monochromatic
#AD8B0E #E5B912 #F0CC45 #F5DC7E #F9EBB6

Accessibility & contrast

On white

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

On black

13.43
#F0CC45 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0CC45
13.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0CC45#FFFFFF#000000##000000
##F0CC451.001.5613.4313.43
#FFFFFF1.561.0021.0021.00
#00000013.4321.001.001.00
##00000013.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#E1C831
Deuteranopia (green-blind)
#EAD34D
Tritanopia (blue-blind)
#FFBCB1
Achromatopsia (no color)
#CFCFCF

Design tokens & code

CSS
--color: #f0cc45;
/* rgb */ color: rgb(240, 204, 69);
/* oklch */ color: oklch(85.3% 0.152 93.7);
Tailwind
colors: {
  custom: {
    50: '#f9db81',
    500: '#f0cc45',
    950: '#000000',
  },
}
SCSS
$custom: #f0cc45;
$custom-light: #f9db81;
$custom-dark: #000000;
JSON
{
  "hex": "#f0cc45",
  "rgb": {
    "r": 240,
    "g": 204,
    "b": 69
  },
  "hsl": {
    "h": 47.368,
    "s": 85.075,
    "l": 60.588
  },
  "oklch": {
    "l": 0.85307,
    "c": 0.15223,
    "h": 93.7
  },
  "luminance": 0.62141
}

Semantic roles & 50–950 ramp

primary
#F0CC45
secondary
#2C47AD
accent
#33E204
background
#FFFEFB
surface
#FFFBF2
border
#D7D4CC
text
#18140B
muted
#86837E

Preview Lab

Preview with #F0CC45

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

Preview Lab → · Contrast checker → · Palette generator →

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