#F0DF5D#F0DF5D

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

Color values

HEX#F0DF5D
RGBrgb(240, 223, 93)
HSLhsl(53, 83%, 65%)
HSVhsv(53, 61%, 94%)
CMYKcmyk(0%, 7.1%, 61.2%, 5.9%)
CIE-LABlab(88.01, -9.40, 64.00)
CIE-LCHlch(88.01, 64.68, 98.36°)
OKLaboklab(89.35% -0.0308 0.1463)
OKLCHoklch(89.35% 0.149 101.9)
XYZxyz(64.3011, 72.0935, 20.8822)
Luminance0.7209 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0DF5D #5D6EF0
analogous
#F0955D #F0DF5D #B8F05D
triadic
#F0DF5D #5DF0DF #DF5DF0
tetradic
#F0DF5D #5DF095 #5D6EF0 #F05DB8
square
#F0DF5D #5DF095 #5D6EF0 #F05DB8
split-complementary
#F0DF5D #5DB8F0 #955DF0
monochromatic
#C1AD12 #EBD425 #F0DF5D #F5EA95 #FAF5CD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##F0DF5D#FFFFFF#000000##000000
##F0DF5D1.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)
#F2D94E
Deuteranopia (green-blind)
#F7E064
Tritanopia (blue-blind)
#FFD1C3
Achromatopsia (no color)
#DDDDDD

Design tokens & code

CSS
--color: #f0df5d;
/* rgb */ color: rgb(240, 223, 93);
/* oklch */ color: oklch(89.3% 0.149 101.9);
Tailwind
colors: {
  custom: {
    50: '#f8e890',
    500: '#f0df5d',
    950: '#000000',
  },
}
SCSS
$custom: #f0df5d;
$custom-light: #f8e890;
$custom-dark: #000000;
JSON
{
  "hex": "#f0df5d",
  "rgb": {
    "r": 240,
    "g": 223,
    "b": 93
  },
  "hsl": {
    "h": 53.061,
    "s": 83.051,
    "l": 65.294
  },
  "oklch": {
    "l": 0.89345,
    "c": 0.14949,
    "h": 101.9
  },
  "luminance": 0.72091
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #F0DF5D

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

Preview Lab → · Contrast checker → · Palette generator →

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