#F0D45F#F0D45F

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

Color values

HEX#F0D45F
RGBrgb(240, 212, 95)
HSLhsl(48, 83%, 66%)
HSVhsv(48, 60%, 94%)
CMYKcmyk(0%, 11.7%, 60.4%, 5.9%)
CIE-LABlab(85.22, -3.73, 60.06)
CIE-LCHlch(85.22, 60.18, 93.55°)
OKLaboklab(87.14% -0.0143 0.1382)
OKLCHoklch(87.14% 0.139 95.9)
XYZxyz(61.5468, 66.4414, 20.4068)
Luminance0.6644 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0D45F #5F7BF0
analogous
#F08B5F #F0D45F #C3F05F
triadic
#F0D45F #5FF0D4 #D45FF0
tetradic
#F0D45F #5FF08B #5F7BF0 #F05FC3
square
#F0D45F #5FF08B #5F7BF0 #F05FC3
split-complementary
#F0D45F #5FC3F0 #8B5FF0
monochromatic
#C2A012 #EBC527 #F0D45F #F5E397 #FAF2CF

Accessibility & contrast

On white

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

On black

14.29
#F0D45F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0D45F
14.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0D45F#FFFFFF#000000##000000
##F0D45F1.001.4714.2914.29
#FFFFFF1.471.0021.0021.00
#00000014.2921.001.001.00
##00000014.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#E7D052
Deuteranopia (green-blind)
#EFD965
Tritanopia (blue-blind)
#FFC5BB
Achromatopsia (no color)
#D5D5D5

Design tokens & code

CSS
--color: #f0d45f;
/* rgb */ color: rgb(240, 212, 95);
/* oklch */ color: oklch(87.1% 0.139 95.9);
Tailwind
colors: {
  custom: {
    50: '#f8e090',
    500: '#f0d45f',
    950: '#000000',
  },
}
SCSS
$custom: #f0d45f;
$custom-light: #f8e090;
$custom-dark: #000000;
JSON
{
  "hex": "#f0d45f",
  "rgb": {
    "r": 240,
    "g": 212,
    "b": 95
  },
  "hsl": {
    "h": 48.414,
    "s": 82.857,
    "l": 65.686
  },
  "oklch": {
    "l": 0.87137,
    "c": 0.13893,
    "h": 95.9
  },
  "luminance": 0.66438
}

Semantic roles & 50–950 ramp

primary
#F0D45F
secondary
#334EC0
accent
#30DF06
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150D
muted
#86847F

Preview Lab

Preview with #F0D45F

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

Preview Lab → · Contrast checker → · Palette generator →

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