#662CAA#662CAA

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

Color values

HEX#662CAA
RGBrgb(102, 44, 170)
HSLhsl(268, 59%, 42%)
HSVhsv(268, 74%, 67%)
CMYKcmyk(40%, 74.1%, 0%, 33.3%)
CIE-LABlab(32.98, 50.61, -57.29)
CIE-LCHlch(32.98, 76.45, 311.46°)
OKLaboklab(44.49% 0.0928 -0.1636)
OKLCHoklch(44.49% 0.188 299.6)
XYZxyz(13.6340, 7.5283, 38.7572)
Luminance0.0753 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662CAA #70AA2C
analogous
#2C31AA #662CAA #A52CAA
triadic
#662CAA #AA662C #2CAA66
tetradic
#662CAA #AA2C31 #70AA2C #2CAAA5
square
#662CAA #AA2C31 #70AA2C #2CAAA5
split-complementary
#662CAA #AAA52C #31AA2C
monochromatic
#2C1349 #491F79 #662CAA #8444CF #A475DB

Accessibility & contrast

On white

8.38
#662CAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #662CAA
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662CAA#FFFFFF#000000##FFFFFF
##662CAA1.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #662caa;
/* rgb */ color: rgb(102, 44, 170);
/* oklch */ color: oklch(44.5% 0.188 299.6);
Tailwind
colors: {
  custom: {
    50: '#986bc4',
    500: '#662caa',
    950: '#000000',
  },
}
SCSS
$custom: #662caa;
$custom-light: #986bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#662caa",
  "rgb": {
    "r": 102,
    "g": 44,
    "b": 170
  },
  "hsl": {
    "h": 267.619,
    "s": 58.879,
    "l": 41.961
  },
  "oklch": {
    "l": 0.44494,
    "c": 0.18813,
    "h": 299.6
  },
  "luminance": 0.07528
}

Semantic roles & 50–950 ramp

primary
#662CAA
secondary
#9CC36F
accent
#E2469A
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #662CAA

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

Preview Lab → · Contrast checker → · Palette generator →

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