#F0CF57#F0CF57

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

Color values

HEX#F0CF57
RGBrgb(240, 207, 87)
HSLhsl(47, 84%, 64%)
HSVhsv(47, 64%, 94%)
CMYKcmyk(0%, 13.7%, 63.7%, 5.9%)
CIE-LABlab(83.88, -1.68, 62.08)
CIE-LCHlch(83.88, 62.11, 91.55°)
OKLaboklab(86.06% -0.0093 0.1414)
OKLCHoklch(86.06% 0.142 93.8)
XYZxyz(59.9711, 63.8422, 18.1789)
Luminance0.6384 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0CF57 #5778F0
analogous
#F08357 #F0CF57 #C5F057
triadic
#F0CF57 #57F0CF #CF57F0
tetradic
#F0CF57 #57F083 #5778F0 #F057C5
square
#F0CF57 #57F083 #5778F0 #F057C5
split-complementary
#F0CF57 #57C5F0 #8357F0
monochromatic
#BC9711 #EBBF1F #F0CF57 #F5DF8F #FAEFC7

Accessibility & contrast

On white

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

On black

13.77
#F0CF57 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0CF57
13.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0CF57#FFFFFF#000000##000000
##F0CF571.001.5313.7713.77
#FFFFFF1.531.0021.0021.00
#00000013.7721.001.001.00
##00000013.7721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f0cf57;
/* rgb */ color: rgb(240, 207, 87);
/* oklch */ color: oklch(86.1% 0.142 93.8);
Tailwind
colors: {
  custom: {
    50: '#f8dd8b',
    500: '#f0cf57',
    950: '#000000',
  },
}
SCSS
$custom: #f0cf57;
$custom-light: #f8dd8b;
$custom-dark: #000000;
JSON
{
  "hex": "#f0cf57",
  "rgb": {
    "r": 240,
    "g": 207,
    "b": 87
  },
  "hsl": {
    "h": 47.059,
    "s": 83.607,
    "l": 64.118
  },
  "oklch": {
    "l": 0.86057,
    "c": 0.1417,
    "h": 93.8
  },
  "luminance": 0.63839
}

Semantic roles & 50–950 ramp

primary
#F0CF57
secondary
#314EBA
accent
#35E005
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150C
muted
#86847F

Preview Lab

Preview with #F0CF57

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

Preview Lab → · Contrast checker → · Palette generator →

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