#662BA2#662BA2

#662BA2 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.7% C 0.181 H 301.9°. Best body text is #FFFFFF at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#662BA2
RGBrgb(102, 43, 162)
HSLhsl(270, 58%, 40%)
HSVhsv(270, 73%, 64%)
CMYKcmyk(37%, 73.5%, 0%, 36.5%)
CIE-LABlab(32.17, 49.08, -53.79)
CIE-LCHlch(32.17, 72.82, 312.37°)
OKLaboklab(43.72% 0.0955 -0.1534)
OKLCHoklch(43.72% 0.181 301.9)
XYZxyz(12.8634, 7.1611, 34.8800)
Luminance0.0716 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662BA2 #67A22B
analogous
#2B2BA2 #662BA2 #A22BA2
triadic
#662BA2 #A2662B #2BA266
tetradic
#662BA2 #A22B2B #67A22B #2BA2A2
square
#662BA2 #A22B2B #67A22B #2BA2A2
split-complementary
#662BA2 #A2A22B #2BA22B
monochromatic
#291141 #481E72 #662BA2 #853ECC #A36FD9

Accessibility & contrast

On white

8.63
#662BA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#662BA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662BA2
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662BA2#FFFFFF#000000##FFFFFF
##662BA21.008.632.438.63
#FFFFFF8.631.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA5
Deuteranopia (green-blind)
#004BA0
Tritanopia (blue-blind)
#594864
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #662ba2;
/* rgb */ color: rgb(102, 43, 162);
/* oklch */ color: oklch(43.7% 0.181 301.9);
Tailwind
colors: {
  custom: {
    50: '#976abe',
    500: '#662ba2',
    950: '#000000',
  },
}
SCSS
$custom: #662ba2;
$custom-light: #976abe;
$custom-dark: #000000;
JSON
{
  "hex": "#662ba2",
  "rgb": {
    "r": 102,
    "g": 43,
    "b": 162
  },
  "hsl": {
    "h": 269.748,
    "s": 58.049,
    "l": 40.196
  },
  "oklch": {
    "l": 0.4372,
    "c": 0.18065,
    "h": 301.9
  },
  "luminance": 0.07161
}

Semantic roles & 50–950 ramp

primary
#662BA2
secondary
#95C069
accent
#E14795
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #662BA2

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

Preview Lab → · Contrast checker → · Palette generator →

#662BA2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva