#FFFF52#FFFF52

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

Color values

HEX#FFFF52
RGBrgb(255, 255, 82)
HSLhsl(60, 100%, 66%)
HSVhsv(60, 68%, 100%)
CMYKcmyk(0%, 0%, 67.8%, 0%)
CIE-LABlab(97.39, -19.57, 78.36)
CIE-LCHlch(97.39, 80.77, 104.02°)
OKLaboklab(97.07% -0.0615 0.1746)
OKLCHoklch(97.07% 0.185 109.4)
XYZxyz(78.5257, 93.3915, 21.8709)
Luminance0.9339 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFFF52 #5252FF
analogous
#FFA852 #FFFF52 #A8FF52
triadic
#FFFF52 #52FFFF #FF52FF
tetradic
#FFFF52 #52FFA8 #5252FF #FF52A8
square
#FFFF52 #52FFA8 #5252FF #FF52A8
split-complementary
#FFFF52 #52A8FF #A852FF
monochromatic
#D7D700 #FFFF15 #FFFF52 #FFFF8F #FFFFCC

Accessibility & contrast

On white

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

On black

19.68
#FFFF52 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFFF52
19.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFFF52#FFFFFF#000000##000000
##FFFF521.001.0719.6819.68
#FFFFFF1.071.0021.0021.00
#00000019.6821.001.001.00
##00000019.6821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ffff52;
/* rgb */ color: rgb(255, 255, 82);
/* oklch */ color: oklch(97.1% 0.185 109.4);
Tailwind
colors: {
  custom: {
    50: '#ffff8c',
    500: '#ffff52',
    950: '#000000',
  },
}
SCSS
$custom: #ffff52;
$custom-light: #ffff8c;
$custom-dark: #000000;
JSON
{
  "hex": "#ffff52",
  "rgb": {
    "r": 255,
    "g": 255,
    "b": 82
  },
  "hsl": {
    "h": 60,
    "s": 100,
    "l": 66.078
  },
  "oklch": {
    "l": 0.97074,
    "c": 0.18509,
    "h": 109.4
  },
  "luminance": 0.93389
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #FFFF52

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

Preview Lab → · Contrast checker → · Palette generator →

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