#662980#662980

#662980 is a dark, vivid purple. Relative luminance 0.060; OKLCH L 40.9% C 0.147 H 314.1°. Best body text is #FFFFFF at 9.57:1 contrast (WCAG AA passes).

Color values

HEX#662980
RGBrgb(102, 41, 128)
HSLhsl(282, 51%, 33%)
HSVhsv(282, 68%, 50%)
CMYKcmyk(20.3%, 68%, 0%, 49.8%)
CIE-LABlab(29.34, 41.95, -37.45)
CIE-LCHlch(29.34, 56.23, 318.24°)
OKLaboklab(40.91% 0.1022 -0.1053)
OKLCHoklch(40.91% 0.147 314.1)
XYZxyz(10.1681, 5.9695, 21.0345)
Luminance0.0597 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662980 #438029
analogous
#3A2980 #662980 #80296E
triadic
#662980 #806629 #298066
tetradic
#662980 #803A29 #438029 #296E80
square
#662980 #803A29 #438029 #296E80
split-complementary
#662980 #6E8029 #29803A
monochromatic
#1C0B23 #411A52 #662980 #8B38AE #A859CA

Accessibility & contrast

On white

9.57
#662980 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#662980 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662980
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662980#FFFFFF#000000##FFFFFF
##6629801.009.572.199.57
#FFFFFF9.571.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004283
Deuteranopia (green-blind)
#25477E
Tritanopia (blue-blind)
#643A51
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #662980;
/* rgb */ color: rgb(102, 41, 128);
/* oklch */ color: oklch(40.9% 0.147 314.1);
Tailwind
colors: {
  custom: {
    50: '#9567a5',
    500: '#662980',
    950: '#000000',
  },
}
SCSS
$custom: #662980;
$custom-light: #9567a5;
$custom-dark: #000000;
JSON
{
  "hex": "#662980",
  "rgb": {
    "r": 102,
    "g": 41,
    "b": 128
  },
  "hsl": {
    "h": 282.069,
    "s": 51.479,
    "l": 33.137
  },
  "oklch": {
    "l": 0.40907,
    "c": 0.14678,
    "h": 314.1
  },
  "luminance": 0.05969
}

Semantic roles & 50–950 ramp

primary
#662980
secondary
#70AF55
accent
#DB4D77
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E060F
muted
#7E7A7F

Preview Lab

Preview with #662980

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

Preview Lab → · Contrast checker → · Palette generator →

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