#F0D257#F0D257

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

Color values

HEX#F0D257
RGBrgb(240, 210, 87)
HSLhsl(48, 84%, 64%)
HSVhsv(48, 64%, 94%)
CMYKcmyk(0%, 12.5%, 63.7%, 5.9%)
CIE-LABlab(84.64, -3.21, 62.90)
CIE-LCHlch(84.64, 62.98, 92.93°)
OKLaboklab(86.66% -0.0137 0.1431)
OKLCHoklch(86.66% 0.144 95.5)
XYZxyz(60.7049, 65.3096, 18.4235)
Luminance0.6531 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0D257 #5775F0
analogous
#F08657 #F0D257 #C2F057
triadic
#F0D257 #57F0D2 #D257F0
tetradic
#F0D257 #57F086 #5775F0 #F057C2
square
#F0D257 #57F086 #5775F0 #F057C2
split-complementary
#F0D257 #57C2F0 #8657F0
monochromatic
#BC9A11 #EBC31F #F0D257 #F5E18F #FAF0C7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##F0D257#FFFFFF#000000##000000
##F0D2571.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)
#E6CE49
Deuteranopia (green-blind)
#EED75D
Tritanopia (blue-blind)
#FFC3B8
Achromatopsia (no color)
#D3D3D3

Design tokens & code

CSS
--color: #f0d257;
/* rgb */ color: rgb(240, 210, 87);
/* oklch */ color: oklch(86.7% 0.144 95.5);
Tailwind
colors: {
  custom: {
    50: '#f8df8b',
    500: '#f0d257',
    950: '#000000',
  },
}
SCSS
$custom: #f0d257;
$custom-light: #f8df8b;
$custom-dark: #000000;
JSON
{
  "hex": "#f0d257",
  "rgb": {
    "r": 240,
    "g": 210,
    "b": 87
  },
  "hsl": {
    "h": 48.235,
    "s": 83.607,
    "l": 64.118
  },
  "oklch": {
    "l": 0.86657,
    "c": 0.14379,
    "h": 95.5
  },
  "luminance": 0.65307
}

Semantic roles & 50–950 ramp

primary
#F0D257
secondary
#314CBA
accent
#30E005
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150C
muted
#86847F

Preview Lab

Preview with #F0D257

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

Preview Lab → · Contrast checker → · Palette generator →

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