#662CAB#662CAB

#662CAB is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.6% C 0.189 H 299.3°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#662CAB
RGBrgb(102, 44, 171)
HSLhsl(267, 59%, 42%)
HSVhsv(267, 74%, 67%)
CMYKcmyk(40.4%, 74.3%, 0%, 32.9%)
CIE-LABlab(33.06, 50.87, -57.76)
CIE-LCHlch(33.06, 76.96, 311.37°)
OKLaboklab(44.58% 0.0926 -0.165)
OKLCHoklch(44.58% 0.189 299.3)
XYZxyz(13.7290, 7.5662, 39.2573)
Luminance0.0757 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662CAB #71AB2C
analogous
#2C31AB #662CAB #A62CAB
triadic
#662CAB #AB662C #2CAB66
tetradic
#662CAB #AB2C31 #71AB2C #2CABA6
square
#662CAB #AB2C31 #71AB2C #2CABA6
split-complementary
#662CAB #ABA62C #31AB2C
monochromatic
#2C134A #491F7A #662CAB #8445CF #A476DC

Accessibility & contrast

On white

8.36
#662CAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#662CAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662CAB
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662CAB#FFFFFF#000000##FFFFFF
##662CAB1.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAF
Deuteranopia (green-blind)
#004DA8
Tritanopia (blue-blind)
#564C69
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #662cab;
/* rgb */ color: rgb(102, 44, 171);
/* oklch */ color: oklch(44.6% 0.189 299.3);
Tailwind
colors: {
  custom: {
    50: '#986bc5',
    500: '#662cab',
    950: '#000000',
  },
}
SCSS
$custom: #662cab;
$custom-light: #986bc5;
$custom-dark: #000000;
JSON
{
  "hex": "#662cab",
  "rgb": {
    "r": 102,
    "g": 44,
    "b": 171
  },
  "hsl": {
    "h": 267.402,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.44577,
    "c": 0.18921,
    "h": 299.3
  },
  "luminance": 0.07566
}

Semantic roles & 50–950 ramp

primary
#662CAB
secondary
#9DC36F
accent
#E2469B
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #662CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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