#F0CA51#F0CA51

#F0CA51 is a very light, vivid yellow. Relative luminance 0.614; OKLCH L 85.0% C 0.143 H 91.5°. Best body text is #000000 at 13.27:1 contrast (WCAG AA passes).

Color values

HEX#F0CA51
RGBrgb(240, 202, 81)
HSLhsl(46, 84%, 63%)
HSVhsv(46, 66%, 94%)
CMYKcmyk(0%, 15.8%, 66.3%, 5.9%)
CIE-LABlab(82.57, 0.53, 63.23)
CIE-LCHlch(82.57, 63.23, 89.52°)
OKLaboklab(85.01% -0.0037 0.1429)
OKLCHoklch(85.01% 0.143 91.5)
XYZxyz(58.5439, 61.3637, 16.5438)
Luminance0.6136 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0CA51 #5177F0
analogous
#F07A51 #F0CA51 #C7F051
triadic
#F0CA51 #51F0CA #CA51F0
tetradic
#F0CA51 #51F07A #5177F0 #F051C7
square
#F0CA51 #51F07A #5177F0 #F051C7
split-complementary
#F0CA51 #51C7F0 #7A51F0
monochromatic
#B78F10 #EBB919 #F0CA51 #F5DB89 #FAECC2

Accessibility & contrast

On white

1.58
#F0CA51 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.27
#F0CA51 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0CA51
13.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0CA51#FFFFFF#000000##000000
##F0CA511.001.5813.2713.27
#FFFFFF1.581.0021.0021.00
#00000013.2721.001.001.00
##00000013.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#DFC742
Deuteranopia (green-blind)
#E8D257
Tritanopia (blue-blind)
#FFBAB1
Achromatopsia (no color)
#CDCDCD

Design tokens & code

CSS
--color: #f0ca51;
/* rgb */ color: rgb(240, 202, 81);
/* oklch */ color: oklch(85.0% 0.143 91.5);
Tailwind
colors: {
  custom: {
    50: '#f9d987',
    500: '#f0ca51',
    950: '#000000',
  },
}
SCSS
$custom: #f0ca51;
$custom-light: #f9d987;
$custom-dark: #000000;
JSON
{
  "hex": "#f0ca51",
  "rgb": {
    "r": 240,
    "g": 202,
    "b": 81
  },
  "hsl": {
    "h": 45.66,
    "s": 84.127,
    "l": 62.941
  },
  "oklch": {
    "l": 0.85006,
    "c": 0.14297,
    "h": 91.5
  },
  "luminance": 0.6136
}

Semantic roles & 50–950 ramp

primary
#F0CA51
secondary
#2F4FB6
accent
#39E105
background
#FFFEFC
surface
#FFFBF4
border
#D7D4CE
text
#18140C
muted
#86837F

Preview Lab

Preview with #F0CA51

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

Preview Lab → · Contrast checker → · Palette generator →

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