#F0CA56#F0CA56

#F0CA56 is a very light, vivid yellow. Relative luminance 0.614; OKLCH L 85.1% C 0.139 H 90.9°. Best body text is #000000 at 13.29:1 contrast (WCAG AA passes).

Color values

HEX#F0CA56
RGBrgb(240, 202, 86)
HSLhsl(45, 84%, 64%)
HSVhsv(45, 64%, 94%)
CMYKcmyk(0%, 15.8%, 64.2%, 5.9%)
CIE-LABlab(82.62, 0.82, 61.15)
CIE-LCHlch(82.62, 61.15, 89.23°)
OKLaboklab(85.05% -0.0022 0.1393)
OKLCHoklch(85.05% 0.139 90.9)
XYZxyz(58.7383, 61.4415, 17.5678)
Luminance0.6144 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0CA56 #567CF0
analogous
#F07D56 #F0CA56 #C9F056
triadic
#F0CA56 #56F0CA #CA56F0
tetradic
#F0CA56 #56F07D #567CF0 #F056C9
square
#F0CA56 #56F07D #567CF0 #F056C9
split-complementary
#F0CA56 #56C9F0 #7D56F0
monochromatic
#BB9111 #EBB81E #F0CA56 #F5DC8E #FAEDC6

Accessibility & contrast

On white

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

On black

13.29
#F0CA56 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0CA56
13.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0CA56#FFFFFF#000000##000000
##F0CA561.001.5813.2913.29
#FFFFFF1.581.0021.0021.00
#00000013.2921.001.001.00
##00000013.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#DFC749
Deuteranopia (green-blind)
#E8D25B
Tritanopia (blue-blind)
#FFBBB1
Achromatopsia (no color)
#CECECE

Design tokens & code

CSS
--color: #f0ca56;
/* rgb */ color: rgb(240, 202, 86);
/* oklch */ color: oklch(85.1% 0.139 90.9);
Tailwind
colors: {
  custom: {
    50: '#f9d98a',
    500: '#f0ca56',
    950: '#000000',
  },
}
SCSS
$custom: #f0ca56;
$custom-light: #f9d98a;
$custom-dark: #000000;
JSON
{
  "hex": "#f0ca56",
  "rgb": {
    "r": 240,
    "g": 202,
    "b": 86
  },
  "hsl": {
    "h": 45.195,
    "s": 83.696,
    "l": 63.922
  },
  "oklch": {
    "l": 0.85053,
    "c": 0.13927,
    "h": 90.9
  },
  "luminance": 0.61438
}

Semantic roles & 50–950 ramp

primary
#F0CA56
secondary
#3052BA
accent
#3BE005
background
#FFFEFC
surface
#FFFBF4
border
#D7D4CE
text
#18140C
muted
#86837F

Preview Lab

Preview with #F0CA56

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

Preview Lab → · Contrast checker → · Palette generator →

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