#F0DF5E#F0DF5E

#F0DF5E is a very light, vivid yellow. Relative luminance 0.721; OKLCH L 89.4% C 0.149 H 101.8°. Best body text is #000000 at 15.42:1 contrast (WCAG AA passes).

Color values

HEX#F0DF5E
RGBrgb(240, 223, 94)
HSLhsl(53, 83%, 65%)
HSVhsv(53, 61%, 94%)
CMYKcmyk(0%, 7.1%, 60.8%, 5.9%)
CIE-LABlab(88.02, -9.34, 63.58)
CIE-LCHlch(88.02, 64.26, 98.36°)
OKLaboklab(89.35% -0.0305 0.1456)
OKLCHoklch(89.35% 0.149 101.8)
XYZxyz(64.3457, 72.1113, 21.1170)
Luminance0.7211 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0DF5E #5E6FF0
analogous
#F0965E #F0DF5E #B8F05E
triadic
#F0DF5E #5EF0DF #DF5EF0
tetradic
#F0DF5E #5EF096 #5E6FF0 #F05EB8
square
#F0DF5E #5EF096 #5E6FF0 #F05EB8
split-complementary
#F0DF5E #5EB8F0 #965EF0
monochromatic
#C2AD12 #EBD426 #F0DF5E #F5EA96 #FAF5CE

Accessibility & contrast

On white

1.36
#F0DF5E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.42
#F0DF5E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0DF5E
15.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0DF5E#FFFFFF#000000##000000
##F0DF5E1.001.3615.4215.42
#FFFFFF1.361.0021.0021.00
#00000015.4221.001.001.00
##00000015.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#F2D94F
Deuteranopia (green-blind)
#F7E065
Tritanopia (blue-blind)
#FFD1C3
Achromatopsia (no color)
#DDDDDD

Design tokens & code

CSS
--color: #f0df5e;
/* rgb */ color: rgb(240, 223, 94);
/* oklch */ color: oklch(89.4% 0.149 101.8);
Tailwind
colors: {
  custom: {
    50: '#f8e891',
    500: '#f0df5e',
    950: '#000000',
  },
}
SCSS
$custom: #f0df5e;
$custom-light: #f8e891;
$custom-dark: #000000;
JSON
{
  "hex": "#f0df5e",
  "rgb": {
    "r": 240,
    "g": 223,
    "b": 94
  },
  "hsl": {
    "h": 53.014,
    "s": 82.955,
    "l": 65.49
  },
  "oklch": {
    "l": 0.89354,
    "c": 0.14871,
    "h": 101.8
  },
  "luminance": 0.72109
}

Semantic roles & 50–950 ramp

primary
#F0DF5E
secondary
#3343BF
accent
#1FDF06
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18160D
muted
#86847F

Preview Lab

Preview with #F0DF5E

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

Preview Lab → · Contrast checker → · Palette generator →

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