#F0D45E#F0D45E

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

Color values

HEX#F0D45E
RGBrgb(240, 212, 94)
HSLhsl(48, 83%, 65%)
HSVhsv(48, 61%, 94%)
CMYKcmyk(0%, 11.7%, 60.8%, 5.9%)
CIE-LABlab(85.21, -3.79, 60.49)
CIE-LCHlch(85.21, 60.61, 93.59°)
OKLaboklab(87.13% -0.0146 0.139)
OKLCHoklch(87.13% 0.14 96)
XYZxyz(61.5017, 66.4233, 20.1690)
Luminance0.6642 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0D45E #5E7AF0
analogous
#F08B5E #F0D45E #C3F05E
triadic
#F0D45E #5EF0D4 #D45EF0
tetradic
#F0D45E #5EF08B #5E7AF0 #F05EC3
square
#F0D45E #5EF08B #5E7AF0 #F05EC3
split-complementary
#F0D45E #5EC3F0 #8B5EF0
monochromatic
#C2A012 #EBC526 #F0D45E #F5E396 #FAF2CE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##F0D45E#FFFFFF#000000##000000
##F0D45E1.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)
#E7D051
Deuteranopia (green-blind)
#EFD964
Tritanopia (blue-blind)
#FFC5BA
Achromatopsia (no color)
#D5D5D5

Design tokens & code

CSS
--color: #f0d45e;
/* rgb */ color: rgb(240, 212, 94);
/* oklch */ color: oklch(87.1% 0.140 96.0);
Tailwind
colors: {
  custom: {
    50: '#f8e090',
    500: '#f0d45e',
    950: '#000000',
  },
}
SCSS
$custom: #f0d45e;
$custom-light: #f8e090;
$custom-dark: #000000;
JSON
{
  "hex": "#f0d45e",
  "rgb": {
    "r": 240,
    "g": 212,
    "b": 94
  },
  "hsl": {
    "h": 48.493,
    "s": 82.955,
    "l": 65.49
  },
  "oklch": {
    "l": 0.87127,
    "c": 0.13974,
    "h": 96
  },
  "luminance": 0.6642
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #F0D45E

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

Preview Lab → · Contrast checker → · Palette generator →

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