#F0D255#F0D255

#F0D255 is a very light, vivid yellow. Relative luminance 0.653; OKLCH L 86.6% C 0.145 H 95.7°. Best body text is #000000 at 14.05:1 contrast (WCAG AA passes).

Color values

HEX#F0D255
RGBrgb(240, 210, 85)
HSLhsl(48, 84%, 64%)
HSVhsv(48, 65%, 94%)
CMYKcmyk(0%, 12.5%, 64.6%, 5.9%)
CIE-LABlab(84.63, -3.33, 63.73)
CIE-LCHlch(84.63, 63.82, 92.99°)
OKLaboklab(86.64% -0.0143 0.1446)
OKLCHoklch(86.64% 0.145 95.7)
XYZxyz(60.6243, 65.2774, 17.9991)
Luminance0.6527 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0D255 #5573F0
analogous
#F08455 #F0D255 #C0F055
triadic
#F0D255 #55F0D2 #D255F0
tetradic
#F0D255 #55F084 #5573F0 #F055C0
square
#F0D255 #55F084 #5573F0 #F055C0
split-complementary
#F0D255 #55C0F0 #8455F0
monochromatic
#BA9910 #EBC31D #F0D255 #F5E18D #FAF0C5

Accessibility & contrast

On white

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

On black

14.05
#F0D255 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0D255
14.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0D255#FFFFFF#000000##000000
##F0D2551.001.4914.0514.05
#FFFFFF1.491.0021.0021.00
#00000014.0521.001.001.00
##00000014.0521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f0d255;
/* rgb */ color: rgb(240, 210, 85);
/* oklch */ color: oklch(86.6% 0.145 95.7);
Tailwind
colors: {
  custom: {
    50: '#f8df8a',
    500: '#f0d255',
    950: '#000000',
  },
}
SCSS
$custom: #f0d255;
$custom-light: #f8df8a;
$custom-dark: #000000;
JSON
{
  "hex": "#f0d255",
  "rgb": {
    "r": 240,
    "g": 210,
    "b": 85
  },
  "hsl": {
    "h": 48.387,
    "s": 83.784,
    "l": 63.725
  },
  "oklch": {
    "l": 0.86639,
    "c": 0.1453,
    "h": 95.7
  },
  "luminance": 0.65274
}

Semantic roles & 50–950 ramp

primary
#F0D255
secondary
#304BB9
accent
#30E005
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150C
muted
#86847F

Preview Lab

Preview with #F0D255

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

Preview Lab → · Contrast checker → · Palette generator →

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