#F0CF56#F0CF56

#F0CF56 is a very light, vivid yellow. Relative luminance 0.638; OKLCH L 86.0% C 0.142 H 93.9°. Best body text is #000000 at 13.76:1 contrast (WCAG AA passes).

Color values

HEX#F0CF56
RGBrgb(240, 207, 86)
HSLhsl(47, 84%, 64%)
HSVhsv(47, 64%, 94%)
CMYKcmyk(0%, 13.7%, 64.2%, 5.9%)
CIE-LABlab(83.88, -1.74, 62.50)
CIE-LCHlch(83.88, 62.53, 91.60°)
OKLaboklab(86.05% -0.0096 0.1421)
OKLCHoklch(86.05% 0.142 93.9)
XYZxyz(59.9306, 63.8259, 17.9652)
Luminance0.6382 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0CF56 #5677F0
analogous
#F08256 #F0CF56 #C4F056
triadic
#F0CF56 #56F0CF #CF56F0
tetradic
#F0CF56 #56F082 #5677F0 #F056C4
square
#F0CF56 #56F082 #5677F0 #F056C4
split-complementary
#F0CF56 #56C4F0 #8256F0
monochromatic
#BB9611 #EBBF1E #F0CF56 #F5DF8E #FAEFC6

Accessibility & contrast

On white

1.53
#F0CF56 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.76
#F0CF56 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0CF56
13.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0CF56#FFFFFF#000000##000000
##F0CF561.001.5313.7613.76
#FFFFFF1.531.0021.0021.00
#00000013.7621.001.001.00
##00000013.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#E3CB48
Deuteranopia (green-blind)
#ECD55C
Tritanopia (blue-blind)
#FFC0B5
Achromatopsia (no color)
#D1D1D1

Design tokens & code

CSS
--color: #f0cf56;
/* rgb */ color: rgb(240, 207, 86);
/* oklch */ color: oklch(86.0% 0.142 93.9);
Tailwind
colors: {
  custom: {
    50: '#f8dd8b',
    500: '#f0cf56',
    950: '#000000',
  },
}
SCSS
$custom: #f0cf56;
$custom-light: #f8dd8b;
$custom-dark: #000000;
JSON
{
  "hex": "#f0cf56",
  "rgb": {
    "r": 240,
    "g": 207,
    "b": 86
  },
  "hsl": {
    "h": 47.143,
    "s": 83.696,
    "l": 63.922
  },
  "oklch": {
    "l": 0.86047,
    "c": 0.14246,
    "h": 93.9
  },
  "luminance": 0.63823
}

Semantic roles & 50–950 ramp

primary
#F0CF56
secondary
#304EBA
accent
#34E005
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150C
muted
#86847F

Preview Lab

Preview with #F0CF56

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

Preview Lab → · Contrast checker → · Palette generator →

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