#F0DF74#F0DF74

#F0DF74 is a very light, vivid yellow. Relative luminance 0.726; OKLCH L 89.6% C 0.129 H 100.4°. Best body text is #000000 at 15.51:1 contrast (WCAG AA passes).

Color values

HEX#F0DF74
RGBrgb(240, 223, 116)
HSLhsl(52, 81%, 70%)
HSVhsv(52, 52%, 94%)
CMYKcmyk(0%, 7.1%, 51.7%, 5.9%)
CIE-LABlab(88.24, -7.72, 53.95)
CIE-LCHlch(88.24, 54.50, 98.14°)
OKLaboklab(89.6% -0.0234 0.1273)
OKLCHoklch(89.6% 0.129 100.4)
XYZxyz(65.4773, 72.5640, 27.0768)
Luminance0.7256 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0DF74 #7485F0
analogous
#F0A174 #F0DF74 #C3F074
triadic
#F0DF74 #74F0DF #DF74F0
tetradic
#F0DF74 #74F0A1 #7485F0 #F074C3
square
#F0DF74 #74F0A1 #7485F0 #F074C3
split-complementary
#F0DF74 #74C3F0 #A174F0
monochromatic
#D3B917 #EAD23D #F0DF74 #F6ECAB #FCF8E2

Accessibility & contrast

On white

1.35
#F0DF74 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.51
#F0DF74 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0DF74
15.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0DF74#FFFFFF#000000##000000
##F0DF741.001.3515.5115.51
#FFFFFF1.351.0021.0021.00
#00000015.5121.001.001.00
##00000015.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#F0D96A
Deuteranopia (green-blind)
#F5E079
Tritanopia (blue-blind)
#FFD2C6
Achromatopsia (no color)
#DDDDDD

Design tokens & code

CSS
--color: #f0df74;
/* rgb */ color: rgb(240, 223, 116);
/* oklch */ color: oklch(89.6% 0.129 100.4);
Tailwind
colors: {
  custom: {
    50: '#f7e89e',
    500: '#f0df74',
    950: '#000000',
  },
}
SCSS
$custom: #f0df74;
$custom-light: #f7e89e;
$custom-dark: #000000;
JSON
{
  "hex": "#f0df74",
  "rgb": {
    "r": 240,
    "g": 223,
    "b": 116
  },
  "hsl": {
    "h": 51.774,
    "s": 80.519,
    "l": 69.804
  },
  "oklch": {
    "l": 0.89596,
    "c": 0.12946,
    "h": 100.4
  },
  "luminance": 0.72562
}

Semantic roles & 50–950 ramp

primary
#F0DF74
secondary
#3F52C9
accent
#26DD09
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#17160F
muted
#858480

Preview Lab

Preview with #F0DF74

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

Preview Lab → · Contrast checker → · Palette generator →

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