#F0D378#F0D378

#F0D378 is a very light, moderate yellow. Relative luminance 0.665; OKLCH L 87.2% C 0.116 H 92.2°. Best body text is #000000 at 14.29:1 contrast (WCAG AA passes).

Color values

HEX#F0D378
RGBrgb(240, 211, 120)
HSLhsl(46, 80%, 71%)
HSVhsv(46, 50%, 94%)
CMYKcmyk(0%, 12.1%, 50%, 5.9%)
CIE-LABlab(85.24, -1.29, 48.44)
CIE-LCHlch(85.24, 48.45, 91.52°)
OKLaboklab(87.24% -0.0044 0.1155)
OKLCHoklch(87.24% 0.116 92.2)
XYZxyz(62.6218, 66.4726, 27.2976)
Luminance0.6647 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0D378 #7895F0
analogous
#F09778 #F0D378 #D1F078
triadic
#F0D378 #78F0D3 #D378F0
tetradic
#F0D378 #78F097 #7895F0 #F078D1
square
#F0D378 #78F097 #7895F0 #F078D1
split-complementary
#F0D378 #78D1F0 #9778F0
monochromatic
#D6A818 #EAC141 #F0D378 #F6E5AF #FCF6E3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##F0D378#FFFFFF#000000##000000
##F0D3781.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)
#E5D070
Deuteranopia (green-blind)
#ECD97B
Tritanopia (blue-blind)
#FFC6BD
Achromatopsia (no color)
#D5D5D5

Design tokens & code

CSS
--color: #f0d378;
/* rgb */ color: rgb(240, 211, 120);
/* oklch */ color: oklch(87.2% 0.116 92.2);
Tailwind
colors: {
  custom: {
    50: '#f7e0a1',
    500: '#f0d378',
    950: '#000000',
  },
}
SCSS
$custom: #f0d378;
$custom-light: #f7e0a1;
$custom-dark: #000000;
JSON
{
  "hex": "#f0d378",
  "rgb": {
    "r": 240,
    "g": 211,
    "b": 120
  },
  "hsl": {
    "h": 45.5,
    "s": 80,
    "l": 70.588
  },
  "oklch": {
    "l": 0.87236,
    "c": 0.11562,
    "h": 92.2
  },
  "luminance": 0.6647
}

Semantic roles & 50–950 ramp

primary
#F0D378
secondary
#4263CA
accent
#3CDC09
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#17150F
muted
#858480

Preview Lab

Preview with #F0D378

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

Preview Lab → · Contrast checker → · Palette generator →

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