#F0D45C#F0D45C

#F0D45C is a very light, vivid yellow. Relative luminance 0.664; OKLCH L 87.1% C 0.141 H 96.2°. Best body text is #000000 at 14.28:1 contrast (WCAG AA passes).

Color values

HEX#F0D45C
RGBrgb(240, 212, 92)
HSLhsl(49, 83%, 65%)
HSVhsv(49, 62%, 94%)
CMYKcmyk(0%, 11.7%, 61.7%, 5.9%)
CIE-LABlab(85.19, -3.92, 61.35)
CIE-LCHlch(85.19, 61.47, 93.66°)
OKLaboklab(87.11% -0.0152 0.1405)
OKLCHoklch(87.11% 0.141 96.2)
XYZxyz(61.4131, 66.3879, 19.7024)
Luminance0.6639 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0D45C #5C78F0
analogous
#F08A5C #F0D45C #C2F05C
triadic
#F0D45C #5CF0D4 #D45CF0
tetradic
#F0D45C #5CF08A #5C78F0 #F05CC2
square
#F0D45C #5CF08A #5C78F0 #F05CC2
split-complementary
#F0D45C #5CC2F0 #8A5CF0
monochromatic
#C09F12 #EBC524 #F0D45C #F5E394 #FAF2CC

Accessibility & contrast

On white

1.47
#F0D45C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.28
#F0D45C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0D45C
14.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0D45C#FFFFFF#000000##000000
##F0D45C1.001.4714.2814.28
#FFFFFF1.471.0021.0021.00
#00000014.2821.001.001.00
##00000014.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#E8D04F
Deuteranopia (green-blind)
#EFD962
Tritanopia (blue-blind)
#FFC5BA
Achromatopsia (no color)
#D5D5D5

Design tokens & code

CSS
--color: #f0d45c;
/* rgb */ color: rgb(240, 212, 92);
/* oklch */ color: oklch(87.1% 0.141 96.2);
Tailwind
colors: {
  custom: {
    50: '#f8e08f',
    500: '#f0d45c',
    950: '#000000',
  },
}
SCSS
$custom: #f0d45c;
$custom-light: #f8e08f;
$custom-dark: #000000;
JSON
{
  "hex": "#f0d45c",
  "rgb": {
    "r": 240,
    "g": 212,
    "b": 92
  },
  "hsl": {
    "h": 48.649,
    "s": 83.146,
    "l": 65.098
  },
  "oklch": {
    "l": 0.87107,
    "c": 0.14135,
    "h": 96.2
  },
  "luminance": 0.66385
}

Semantic roles & 50–950 ramp

primary
#F0D45C
secondary
#324DBE
accent
#2FE006
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150D
muted
#86847F

Preview Lab

Preview with #F0D45C

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

Preview Lab → · Contrast checker → · Palette generator →

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