#F0DC74#F0DC74

#F0DC74 is a very light, vivid yellow. Relative luminance 0.710; OKLCH L 89.0% C 0.127 H 98.7°. Best body text is #000000 at 15.19:1 contrast (WCAG AA passes).

Color values

HEX#F0DC74
RGBrgb(240, 220, 116)
HSLhsl(50, 81%, 70%)
HSVhsv(50, 52%, 94%)
CMYKcmyk(0%, 8.3%, 51.7%, 5.9%)
CIE-LABlab(87.47, -6.21, 53.04)
CIE-LCHlch(87.47, 53.41, 96.67°)
OKLaboklab(88.99% -0.0191 0.1253)
OKLCHoklch(88.99% 0.127 98.7)
XYZxyz(64.6829, 70.9751, 26.8120)
Luminance0.7097 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0DC74 #7488F0
analogous
#F09E74 #F0DC74 #C6F074
triadic
#F0DC74 #74F0DC #DC74F0
tetradic
#F0DC74 #74F09E #7488F0 #F074C6
square
#F0DC74 #74F09E #7488F0 #F074C6
split-complementary
#F0DC74 #74C6F0 #9E74F0
monochromatic
#D3B517 #EACE3D #F0DC74 #F6EAAB #FCF8E2

Accessibility & contrast

On white

1.38
#F0DC74 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.19
#F0DC74 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0DC74
15.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0DC74#FFFFFF#000000##000000
##F0DC741.001.3815.1915.19
#FFFFFF1.381.0021.0021.00
#00000015.1921.001.001.00
##00000015.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#EDD76B
Deuteranopia (green-blind)
#F3DE79
Tritanopia (blue-blind)
#FFCFC4
Achromatopsia (no color)
#DBDBDB

Design tokens & code

CSS
--color: #f0dc74;
/* rgb */ color: rgb(240, 220, 116);
/* oklch */ color: oklch(89.0% 0.127 98.7);
Tailwind
colors: {
  custom: {
    50: '#f7e69e',
    500: '#f0dc74',
    950: '#000000',
  },
}
SCSS
$custom: #f0dc74;
$custom-light: #f7e69e;
$custom-dark: #000000;
JSON
{
  "hex": "#f0dc74",
  "rgb": {
    "r": 240,
    "g": 220,
    "b": 116
  },
  "hsl": {
    "h": 50.323,
    "s": 80.519,
    "l": 69.804
  },
  "oklch": {
    "l": 0.88989,
    "c": 0.12677,
    "h": 98.7
  },
  "luminance": 0.70973
}

Semantic roles & 50–950 ramp

primary
#F0DC74
secondary
#3F55C9
accent
#2BDD09
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#17150F
muted
#858480

Preview Lab

Preview with #F0DC74

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

Preview Lab → · Contrast checker → · Palette generator →

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