#F0DF7F#F0DF7F

#F0DF7F is a very light, moderate yellow. Relative luminance 0.728; OKLCH L 89.7% C 0.119 H 99.5°. Best body text is #000000 at 15.57:1 contrast (WCAG AA passes).

Color values

HEX#F0DF7F
RGBrgb(240, 223, 127)
HSLhsl(51, 79%, 72%)
HSVhsv(51, 47%, 94%)
CMYKcmyk(0%, 7.1%, 47.1%, 5.9%)
CIE-LABlab(88.37, -6.76, 48.87)
CIE-LCHlch(88.37, 49.34, 97.87°)
OKLaboklab(89.74% -0.0195 0.117)
OKLCHoklch(89.74% 0.119 99.5)
XYZxyz(66.1554, 72.8352, 30.6484)
Luminance0.7283 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0DF7F #7F90F0
analogous
#F0A67F #F0DF7F #C9F07F
triadic
#F0DF7F #7FF0DF #DF7FF0
tetradic
#F0DF7F #7FF0A6 #7F90F0 #F07FC9
square
#F0DF7F #7FF0A6 #7F90F0 #F07FC9
split-complementary
#F0DF7F #7FC9F0 #A67FF0
monochromatic
#DBBE1A #EAD148 #F0DF7F #F6EDB6 #FCF8E4

Accessibility & contrast

On white

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

On black

15.57
#F0DF7F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0DF7F
15.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0DF7F#FFFFFF#000000##000000
##F0DF7F1.001.3515.5715.57
#FFFFFF1.351.0021.0021.00
#00000015.5721.001.001.00
##00000015.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#EFDA77
Deuteranopia (green-blind)
#F4E183
Tritanopia (blue-blind)
#FFD3C8
Achromatopsia (no color)
#DEDEDE

Design tokens & code

CSS
--color: #f0df7f;
/* rgb */ color: rgb(240, 223, 127);
/* oklch */ color: oklch(89.7% 0.119 99.5);
Tailwind
colors: {
  custom: {
    50: '#f7e8a6',
    500: '#f0df7f',
    950: '#000000',
  },
}
SCSS
$custom: #f0df7f;
$custom-light: #f7e8a6;
$custom-dark: #000000;
JSON
{
  "hex": "#f0df7f",
  "rgb": {
    "r": 240,
    "g": 223,
    "b": 127
  },
  "hsl": {
    "h": 50.973,
    "s": 79.021,
    "l": 71.961
  },
  "oklch": {
    "l": 0.89741,
    "c": 0.11865,
    "h": 99.5
  },
  "luminance": 0.72833
}

Semantic roles & 50–950 ramp

primary
#F0DF7F
secondary
#495CCB
accent
#2ADB0A
background
#FFFEFC
surface
#FFFCF6
border
#D7D5D0
text
#17160F
muted
#858480

Preview Lab

Preview with #F0DF7F

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

Preview Lab → · Contrast checker → · Palette generator →

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