#FFFF51#FFFF51

#FFFF51 is a very light, vivid yellow. Relative luminance 0.934; OKLCH L 97.1% C 0.186 H 109.4°. Best body text is #000000 at 19.67:1 contrast (WCAG AA passes).

Color values

HEX#FFFF51
RGBrgb(255, 255, 81)
HSLhsl(60, 100%, 66%)
HSVhsv(60, 68%, 100%)
CMYKcmyk(0%, 0%, 68.2%, 0%)
CIE-LABlab(97.38, -19.62, 78.71)
CIE-LCHlch(97.38, 81.12, 103.99°)
OKLaboklab(97.07% -0.0617 0.1752)
OKLCHoklch(97.07% 0.186 109.4)
XYZxyz(78.4879, 93.3764, 21.6719)
Luminance0.9337 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFFF51 #5151FF
analogous
#FFA851 #FFFF51 #A8FF51
triadic
#FFFF51 #51FFFF #FF51FF
tetradic
#FFFF51 #51FFA8 #5151FF #FF51A8
square
#FFFF51 #51FFA8 #5151FF #FF51A8
split-complementary
#FFFF51 #51A8FF #A851FF
monochromatic
#D6D600 #FFFF14 #FFFF51 #FFFF8E #FFFFCB

Accessibility & contrast

On white

1.07
#FFFF51 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

19.67
#FFFF51 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFFF51
19.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFFF51#FFFFFF#000000##000000
##FFFF511.001.0719.6719.67
#FFFFFF1.071.0021.0021.00
#00000019.6721.001.001.00
##00000019.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF534
Deuteranopia (green-blind)
#FFFA5E
Tritanopia (blue-blind)
#FFEFDD
Achromatopsia (no color)
#F7F7F7

Design tokens & code

CSS
--color: #ffff51;
/* rgb */ color: rgb(255, 255, 81);
/* oklch */ color: oklch(97.1% 0.186 109.4);
Tailwind
colors: {
  custom: {
    50: '#ffff8c',
    500: '#ffff51',
    950: '#000000',
  },
}
SCSS
$custom: #ffff51;
$custom-light: #ffff8c;
$custom-dark: #000000;
JSON
{
  "hex": "#ffff51",
  "rgb": {
    "r": 255,
    "g": 255,
    "b": 81
  },
  "hsl": {
    "h": 60,
    "s": 100,
    "l": 65.882
  },
  "oklch": {
    "l": 0.97067,
    "c": 0.18571,
    "h": 109.4
  },
  "luminance": 0.93374
}

Semantic roles & 50–950 ramp

primary
#FFFF51
secondary
#2525D0
accent
#00E600
background
#FFFFFC
surface
#FFFFF4
border
#D7D7CE
text
#19170D
muted
#87857F

Preview Lab

Preview with #FFFF51

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

Preview Lab → · Contrast checker → · Palette generator →

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