#F0D271#F0D271

#F0D271 is a very light, vivid yellow. Relative luminance 0.658; OKLCH L 86.9% C 0.122 H 92.6°. Best body text is #000000 at 14.16:1 contrast (WCAG AA passes).

Color values

HEX#F0D271
RGBrgb(240, 210, 113)
HSLhsl(46, 81%, 69%)
HSVhsv(46, 53%, 94%)
CMYKcmyk(0%, 12.5%, 52.9%, 5.9%)
CIE-LABlab(84.90, -1.37, 51.40)
CIE-LCHlch(84.90, 51.42, 91.53°)
OKLaboklab(86.94% -0.0054 0.1215)
OKLCHoklch(86.94% 0.122 92.6)
XYZxyz(61.9648, 65.8136, 25.0590)
Luminance0.6581 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0D271 #718FF0
analogous
#F09371 #F0D271 #CFF071
triadic
#F0D271 #71F0D2 #D271F0
tetradic
#F0D271 #71F093 #718FF0 #F071CF
square
#F0D271 #71F093 #718FF0 #F071CF
split-complementary
#F0D271 #71CFF0 #9371F0
monochromatic
#D1A516 #EAC03A #F0D271 #F6E4A8 #FCF5E0

Accessibility & contrast

On white

1.48
#F0D271 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.16
#F0D271 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0D271
14.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0D271#FFFFFF#000000##000000
##F0D2711.001.4814.1614.16
#FFFFFF1.481.0021.0021.00
#00000014.1621.001.001.00
##00000014.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#E4CF68
Deuteranopia (green-blind)
#ECD875
Tritanopia (blue-blind)
#FFC5BB
Achromatopsia (no color)
#D4D4D4

Design tokens & code

CSS
--color: #f0d271;
/* rgb */ color: rgb(240, 210, 113);
/* oklch */ color: oklch(86.9% 0.122 92.6);
Tailwind
colors: {
  custom: {
    50: '#f7df9c',
    500: '#f0d271',
    950: '#000000',
  },
}
SCSS
$custom: #f0d271;
$custom-light: #f7df9c;
$custom-dark: #000000;
JSON
{
  "hex": "#f0d271",
  "rgb": {
    "r": 240,
    "g": 210,
    "b": 113
  },
  "hsl": {
    "h": 45.827,
    "s": 80.892,
    "l": 69.216
  },
  "oklch": {
    "l": 0.86944,
    "c": 0.12159,
    "h": 92.6
  },
  "luminance": 0.65811
}

Semantic roles & 50–950 ramp

primary
#F0D271
secondary
#3C5DC9
accent
#3BDD08
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18150E
muted
#86847F

Preview Lab

Preview with #F0D271

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

Preview Lab → · Contrast checker → · Palette generator →

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