#FFFF42#FFFF42

#FFFF42 is a very light, vivid yellow. Relative luminance 0.932; OKLCH L 97.0% C 0.194 H 109.5°. Best body text is #000000 at 19.63:1 contrast (WCAG AA passes).

Color values

HEX#FFFF42
RGBrgb(255, 255, 66)
HSLhsl(60, 100%, 63%)
HSVhsv(60, 74%, 100%)
CMYKcmyk(0%, 0%, 74.1%, 0%)
CIE-LABlab(97.30, -20.27, 83.52)
CIE-LCHlch(97.30, 85.95, 103.64°)
OKLaboklab(96.98% -0.0648 0.1828)
OKLCHoklch(96.98% 0.194 109.5)
XYZxyz(77.9863, 93.1757, 19.0299)
Luminance0.9317 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFFF42 #4242FF
analogous
#FFA042 #FFFF42 #A0FF42
triadic
#FFFF42 #42FFFF #FF42FF
tetradic
#FFFF42 #42FFA0 #4242FF #FF42A0
square
#FFFF42 #42FFA0 #4242FF #FF42A0
split-complementary
#FFFF42 #42A0FF #A042FF
monochromatic
#C7C700 #FFFF05 #FFFF42 #FFFF7F #FFFFBC

Accessibility & contrast

On white

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

On black

19.63
#FFFF42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFFF42
19.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFFF42#FFFFFF#000000##000000
##FFFF421.001.0719.6319.63
#FFFFFF1.071.0021.0021.00
#00000019.6321.001.001.00
##00000019.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF410
Deuteranopia (green-blind)
#FFFA52
Tritanopia (blue-blind)
#FFEFDC
Achromatopsia (no color)
#F7F7F7

Design tokens & code

CSS
--color: #ffff42;
/* rgb */ color: rgb(255, 255, 66);
/* oklch */ color: oklch(97.0% 0.194 109.5);
Tailwind
colors: {
  custom: {
    50: '#ffff84',
    500: '#ffff42',
    950: '#000000',
  },
}
SCSS
$custom: #ffff42;
$custom-light: #ffff84;
$custom-dark: #000000;
JSON
{
  "hex": "#ffff42",
  "rgb": {
    "r": 255,
    "g": 255,
    "b": 66
  },
  "hsl": {
    "h": 60,
    "s": 100,
    "l": 62.941
  },
  "oklch": {
    "l": 0.96976,
    "c": 0.19398,
    "h": 109.5
  },
  "luminance": 0.93173
}

Semantic roles & 50–950 ramp

primary
#FFFF42
secondary
#2222C3
accent
#00E600
background
#FFFFFC
surface
#FFFFF4
border
#D7D7CE
text
#19170C
muted
#87857F

Preview Lab

Preview with #FFFF42

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

Preview Lab → · Contrast checker → · Palette generator →

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