#F0D781#F0D781

#F0D781 is a very light, moderate yellow. Relative luminance 0.687; OKLCH L 88.2% C 0.110 H 93.7°. Best body text is #000000 at 14.74:1 contrast (WCAG AA passes).

Color values

HEX#F0D781
RGBrgb(240, 215, 129)
HSLhsl(46, 79%, 72%)
HSVhsv(46, 46%, 94%)
CMYKcmyk(0%, 10.4%, 46.3%, 5.9%)
CIE-LABlab(86.36, -2.51, 45.42)
CIE-LCHlch(86.36, 45.49, 93.17°)
OKLaboklab(88.16% -0.0071 0.1095)
OKLCHoklch(88.16% 0.11 93.7)
XYZxyz(64.2000, 68.7137, 30.6460)
Luminance0.6871 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0D781 #819AF0
analogous
#F09F81 #F0D781 #D2F081
triadic
#F0D781 #81F0D7 #D781F0
tetradic
#F0D781 #81F09F #819AF0 #F081D2
square
#F0D781 #81F09F #819AF0 #F081D2
split-complementary
#F0D781 #81D2F0 #9F81F0
monochromatic
#DCB11A #E9C64A #F0D781 #F7E8B8 #FCF6E4

Accessibility & contrast

On white

1.42
#F0D781 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.74
#F0D781 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0D781
14.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0D781#FFFFFF#000000##000000
##F0D7811.001.4214.7414.74
#FFFFFF1.421.0021.0021.00
#00000014.7421.001.001.00
##00000014.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#E7D47A
Deuteranopia (green-blind)
#EEDB84
Tritanopia (blue-blind)
#FFCBC2
Achromatopsia (no color)
#D8D8D8

Design tokens & code

CSS
--color: #f0d781;
/* rgb */ color: rgb(240, 215, 129);
/* oklch */ color: oklch(88.2% 0.110 93.7);
Tailwind
colors: {
  custom: {
    50: '#f7e3a7',
    500: '#f0d781',
    950: '#000000',
  },
}
SCSS
$custom: #f0d781;
$custom-light: #f7e3a7;
$custom-dark: #000000;
JSON
{
  "hex": "#f0d781",
  "rgb": {
    "r": 240,
    "g": 215,
    "b": 129
  },
  "hsl": {
    "h": 46.486,
    "s": 78.723,
    "l": 72.353
  },
  "oklch": {
    "l": 0.88162,
    "c": 0.10969,
    "h": 93.7
  },
  "luminance": 0.68711
}

Semantic roles & 50–950 ramp

primary
#F0D781
secondary
#4A67CB
accent
#39DB0A
background
#FFFEFC
surface
#FFFCF6
border
#D7D5D0
text
#17150F
muted
#858480

Preview Lab

Preview with #F0D781

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

Preview Lab → · Contrast checker → · Palette generator →

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