#F0D151#F0D151

#F0D151 is a very light, vivid yellow. Relative luminance 0.647; OKLCH L 86.4% C 0.148 H 95.4°. Best body text is #000000 at 13.94:1 contrast (WCAG AA passes).

Color values

HEX#F0D151
RGBrgb(240, 209, 81)
HSLhsl(48, 84%, 63%)
HSVhsv(48, 66%, 94%)
CMYKcmyk(0%, 12.9%, 66.3%, 5.9%)
CIE-LABlab(84.34, -3.05, 65.09)
CIE-LCHlch(84.34, 65.16, 92.69°)
OKLaboklab(86.4% -0.014 0.1469)
OKLCHoklch(86.4% 0.148 95.4)
XYZxyz(60.2237, 64.7234, 17.1037)
Luminance0.6472 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0D151 #5170F0
analogous
#F08151 #F0D151 #BFF051
triadic
#F0D151 #51F0D1 #D151F0
tetradic
#F0D151 #51F081 #5170F0 #F051BF
square
#F0D151 #51F081 #5170F0 #F051BF
split-complementary
#F0D151 #51BFF0 #8151F0
monochromatic
#B79610 #EBC219 #F0D151 #F5E089 #FAEFC2

Accessibility & contrast

On white

1.51
#F0D151 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.94
#F0D151 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0D151
13.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0D151#FFFFFF#000000##000000
##F0D1511.001.5113.9413.94
#FFFFFF1.511.0021.0021.00
#00000013.9421.001.001.00
##00000013.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#E5CD41
Deuteranopia (green-blind)
#EDD758
Tritanopia (blue-blind)
#FFC2B6
Achromatopsia (no color)
#D2D2D2

Design tokens & code

CSS
--color: #f0d151;
/* rgb */ color: rgb(240, 209, 81);
/* oklch */ color: oklch(86.4% 0.148 95.4);
Tailwind
colors: {
  custom: {
    50: '#f9de88',
    500: '#f0d151',
    950: '#000000',
  },
}
SCSS
$custom: #f0d151;
$custom-light: #f9de88;
$custom-dark: #000000;
JSON
{
  "hex": "#f0d151",
  "rgb": {
    "r": 240,
    "g": 209,
    "b": 81
  },
  "hsl": {
    "h": 48.302,
    "s": 84.127,
    "l": 62.941
  },
  "oklch": {
    "l": 0.86403,
    "c": 0.14751,
    "h": 95.4
  },
  "luminance": 0.6472
}

Semantic roles & 50–950 ramp

primary
#F0D151
secondary
#2F49B6
accent
#30E105
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150C
muted
#86847F

Preview Lab

Preview with #F0D151

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

Preview Lab → · Contrast checker → · Palette generator →

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