#F0DC7C#F0DC7C

#F0DC7C is a very light, moderate yellow. Relative luminance 0.712; OKLCH L 89.1% C 0.119 H 97.8°. Best body text is #000000 at 15.23:1 contrast (WCAG AA passes).

Color values

HEX#F0DC7C
RGBrgb(240, 220, 124)
HSLhsl(50, 79%, 71%)
HSVhsv(50, 48%, 94%)
CMYKcmyk(0%, 8.3%, 48.3%, 5.9%)
CIE-LABlab(87.57, -5.51, 49.34)
CIE-LCHlch(87.57, 49.65, 96.38°)
OKLaboklab(89.09% -0.0162 0.1179)
OKLCHoklch(89.09% 0.119 97.8)
XYZxyz(65.1684, 71.1693, 29.3692)
Luminance0.7117 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0DC7C #7C90F0
analogous
#F0A27C #F0DC7C #CAF07C
triadic
#F0DC7C #7CF0DC #DC7CF0
tetradic
#F0DC7C #7CF0A2 #7C90F0 #F07CCA
square
#F0DC7C #7CF0A2 #7C90F0 #F07CCA
split-complementary
#F0DC7C #7CCAF0 #A27CF0
monochromatic
#D9B819 #EACD45 #F0DC7C #F6EBB3 #FCF8E4

Accessibility & contrast

On white

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

On black

15.23
#F0DC7C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0DC7C
15.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0DC7C#FFFFFF#000000##000000
##F0DC7C1.001.3815.2315.23
#FFFFFF1.381.0021.0021.00
#00000015.2321.001.001.00
##00000015.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#EDD774
Deuteranopia (green-blind)
#F2DF80
Tritanopia (blue-blind)
#FFD0C5
Achromatopsia (no color)
#DBDBDB

Design tokens & code

CSS
--color: #f0dc7c;
/* rgb */ color: rgb(240, 220, 124);
/* oklch */ color: oklch(89.1% 0.119 97.8);
Tailwind
colors: {
  custom: {
    50: '#f7e6a4',
    500: '#f0dc7c',
    950: '#000000',
  },
}
SCSS
$custom: #f0dc7c;
$custom-light: #f7e6a4;
$custom-dark: #000000;
JSON
{
  "hex": "#f0dc7c",
  "rgb": {
    "r": 240,
    "g": 220,
    "b": 124
  },
  "hsl": {
    "h": 49.655,
    "s": 79.452,
    "l": 71.373
  },
  "oklch": {
    "l": 0.89094,
    "c": 0.11896,
    "h": 97.8
  },
  "luminance": 0.71167
}

Semantic roles & 50–950 ramp

primary
#F0DC7C
secondary
#465DCA
accent
#2EDC0A
background
#FFFEFC
surface
#FFFCF6
border
#D7D5D0
text
#17150F
muted
#858480

Preview Lab

Preview with #F0DC7C

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

Preview Lab → · Contrast checker → · Palette generator →

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