#F0D258#F0D258

#F0D258 is a very light, vivid yellow. Relative luminance 0.653; OKLCH L 86.7% C 0.143 H 95.4°. Best body text is #000000 at 14.06:1 contrast (WCAG AA passes).

Color values

HEX#F0D258
RGBrgb(240, 210, 88)
HSLhsl(48, 84%, 64%)
HSVhsv(48, 63%, 94%)
CMYKcmyk(0%, 12.5%, 63.3%, 5.9%)
CIE-LABlab(84.65, -3.15, 62.49)
CIE-LCHlch(84.65, 62.56, 92.89°)
OKLaboklab(86.67% -0.0135 0.1424)
OKLCHoklch(86.67% 0.143 95.4)
XYZxyz(60.7460, 65.3261, 18.6401)
Luminance0.6532 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0D258 #5876F0
analogous
#F08658 #F0D258 #C2F058
triadic
#F0D258 #58F0D2 #D258F0
tetradic
#F0D258 #58F086 #5876F0 #F058C2
square
#F0D258 #58F086 #5876F0 #F058C2
split-complementary
#F0D258 #58C2F0 #8658F0
monochromatic
#BD9B11 #EBC320 #F0D258 #F5E190 #FAF0C8

Accessibility & contrast

On white

1.49
#F0D258 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.06
#F0D258 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0D258
14.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0D258#FFFFFF#000000##000000
##F0D2581.001.4914.0614.06
#FFFFFF1.491.0021.0021.00
#00000014.0621.001.001.00
##00000014.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#E6CE4A
Deuteranopia (green-blind)
#EED75E
Tritanopia (blue-blind)
#FFC3B8
Achromatopsia (no color)
#D3D3D3

Design tokens & code

CSS
--color: #f0d258;
/* rgb */ color: rgb(240, 210, 88);
/* oklch */ color: oklch(86.7% 0.143 95.4);
Tailwind
colors: {
  custom: {
    50: '#f8df8c',
    500: '#f0d258',
    950: '#000000',
  },
}
SCSS
$custom: #f0d258;
$custom-light: #f8df8c;
$custom-dark: #000000;
JSON
{
  "hex": "#f0d258",
  "rgb": {
    "r": 240,
    "g": 210,
    "b": 88
  },
  "hsl": {
    "h": 48.158,
    "s": 83.516,
    "l": 64.314
  },
  "oklch": {
    "l": 0.86666,
    "c": 0.14302,
    "h": 95.4
  },
  "luminance": 0.65323
}

Semantic roles & 50–950 ramp

primary
#F0D258
secondary
#314CBB
accent
#31E006
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150C
muted
#86847F

Preview Lab

Preview with #F0D258

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

Preview Lab → · Contrast checker → · Palette generator →

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