#662BAB#662BAB

#662BAB is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.5% C 0.190 H 299.4°. Best body text is #FFFFFF at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#662BAB
RGBrgb(102, 43, 171)
HSLhsl(268, 60%, 42%)
HSVhsv(268, 75%, 67%)
CMYKcmyk(40.4%, 74.9%, 0%, 32.9%)
CIE-LABlab(32.90, 51.32, -58.02)
CIE-LCHlch(32.90, 77.46, 311.49°)
OKLaboklab(44.47% 0.0935 -0.1658)
OKLCHoklch(44.47% 0.19 299.4)
XYZxyz(13.6922, 7.4926, 39.2450)
Luminance0.0749 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662BAB #70AB2B
analogous
#2B30AB #662BAB #A62BAB
triadic
#662BAB #AB662B #2BAB66
tetradic
#662BAB #AB2B30 #70AB2B #2BABA6
square
#662BAB #AB2B30 #70AB2B #2BABA6
split-complementary
#662BAB #ABA62B #30AB2B
monochromatic
#2C1249 #491F7A #662BAB #8443D0 #A474DC

Accessibility & contrast

On white

8.40
#662BAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#662BAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662BAB
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662BAB#FFFFFF#000000##FFFFFF
##662BAB1.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAF
Deuteranopia (green-blind)
#004CA8
Tritanopia (blue-blind)
#564C69
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #662bab;
/* rgb */ color: rgb(102, 43, 171);
/* oklch */ color: oklch(44.5% 0.190 299.4);
Tailwind
colors: {
  custom: {
    50: '#986ac5',
    500: '#662bab',
    950: '#000000',
  },
}
SCSS
$custom: #662bab;
$custom-light: #986ac5;
$custom-dark: #000000;
JSON
{
  "hex": "#662bab",
  "rgb": {
    "r": 102,
    "g": 43,
    "b": 171
  },
  "hsl": {
    "h": 267.656,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.44465,
    "c": 0.19033,
    "h": 299.4
  },
  "luminance": 0.07493
}

Semantic roles & 50–950 ramp

primary
#662BAB
secondary
#9CC46E
accent
#E3459A
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #662BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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