#662182#662182

#662182 is a dark, vivid purple. Relative luminance 0.055; OKLCH L 40.1% C 0.160 H 314.2°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#662182
RGBrgb(102, 33, 130)
HSLhsl(283, 60%, 32%)
HSVhsv(283, 75%, 51%)
CMYKcmyk(21.5%, 74.6%, 0%, 49%)
CIE-LABlab(28.18, 46.02, -40.56)
CIE-LCHlch(28.18, 61.35, 318.61°)
OKLaboklab(40.12% 0.1112 -0.1144)
OKLCHoklch(40.12% 0.16 314.2)
XYZxyz(10.0519, 5.5245, 21.6516)
Luminance0.0552 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662182 #3D8221
analogous
#352182 #662182 #82216E
triadic
#662182 #826621 #218266
tetradic
#662182 #823521 #3D8221 #216E82
square
#662182 #823521 #3D8221 #216E82
split-complementary
#662182 #6E8221 #218235
monochromatic
#190820 #401551 #662182 #8C2DB3 #AB4CD2

Accessibility & contrast

On white

9.98
#662182 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#662182 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662182
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662182#FFFFFF#000000##FFFFFF
##6621821.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F85
Deuteranopia (green-blind)
#1B4480
Tritanopia (blue-blind)
#63364F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #662182;
/* rgb */ color: rgb(102, 33, 130);
/* oklch */ color: oklch(40.1% 0.160 314.2);
Tailwind
colors: {
  custom: {
    50: '#9563a7',
    500: '#662182',
    950: '#000000',
  },
}
SCSS
$custom: #662182;
$custom-light: #9563a7;
$custom-dark: #000000;
JSON
{
  "hex": "#662182",
  "rgb": {
    "r": 102,
    "g": 33,
    "b": 130
  },
  "hsl": {
    "h": 282.68,
    "s": 59.509,
    "l": 31.961
  },
  "oklch": {
    "l": 0.40124,
    "c": 0.15953,
    "h": 314.2
  },
  "luminance": 0.05524
}

Semantic roles & 50–950 ramp

primary
#662182
secondary
#69B44A
accent
#E34573
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E060F
muted
#7E7A7F

Preview Lab

Preview with #662182

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

Preview Lab → · Contrast checker → · Palette generator →

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