#662282#662282

#662282 is a dark, vivid purple. Relative luminance 0.056; OKLCH L 40.2% C 0.158 H 314.1°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#662282
RGBrgb(102, 34, 130)
HSLhsl(283, 59%, 32%)
HSVhsv(283, 74%, 51%)
CMYKcmyk(21.5%, 73.8%, 0%, 49%)
CIE-LABlab(28.33, 45.60, -40.32)
CIE-LCHlch(28.33, 60.87, 318.51°)
OKLaboklab(40.23% 0.1101 -0.1137)
OKLCHoklch(40.23% 0.158 314.1)
XYZxyz(10.0801, 5.5809, 21.6610)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662282 #3E8222
analogous
#362282 #662282 #82226E
triadic
#662282 #826622 #228266
tetradic
#662282 #823622 #3E8222 #226E82
square
#662282 #823622 #3E8222 #226E82
split-complementary
#662282 #6E8222 #228236
monochromatic
#1A0921 #401551 #662282 #8C2FB3 #AA4ED1

Accessibility & contrast

On white

9.92
#662282 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#662282 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662282
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662282#FFFFFF#000000##FFFFFF
##6622821.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F85
Deuteranopia (green-blind)
#1C4480
Tritanopia (blue-blind)
#633650
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #662282;
/* rgb */ color: rgb(102, 34, 130);
/* oklch */ color: oklch(40.2% 0.158 314.1);
Tailwind
colors: {
  custom: {
    50: '#9564a7',
    500: '#662282',
    950: '#000000',
  },
}
SCSS
$custom: #662282;
$custom-light: #9564a7;
$custom-dark: #000000;
JSON
{
  "hex": "#662282",
  "rgb": {
    "r": 102,
    "g": 34,
    "b": 130
  },
  "hsl": {
    "h": 282.5,
    "s": 58.537,
    "l": 32.157
  },
  "oklch": {
    "l": 0.40231,
    "c": 0.15829,
    "h": 314.1
  },
  "luminance": 0.05581
}

Semantic roles & 50–950 ramp

primary
#662282
secondary
#6AB44C
accent
#E24673
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E060F
muted
#7E7A7F

Preview Lab

Preview with #662282

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

Preview Lab → · Contrast checker → · Palette generator →

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