#662AAC#662AAC

#662AAC is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.4% C 0.192 H 299.3°. Best body text is #FFFFFF at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#662AAC
RGBrgb(102, 42, 172)
HSLhsl(268, 61%, 42%)
HSVhsv(268, 76%, 67%)
CMYKcmyk(40.7%, 75.6%, 0%, 32.5%)
CIE-LABlab(32.83, 52.02, -58.74)
CIE-LCHlch(32.83, 78.46, 311.53°)
OKLaboklab(44.44% 0.0942 -0.1679)
OKLCHoklch(44.44% 0.192 299.3)
XYZxyz(13.7520, 7.4591, 39.7369)
Luminance0.0746 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662AAC #70AC2A
analogous
#2A2FAC #662AAC #A72AAC
triadic
#662AAC #AC662A #2AAC66
tetradic
#662AAC #AC2A2F #70AC2A #2AACA7
square
#662AAC #AC2A2F #70AC2A #2AACA7
split-complementary
#662AAC #ACA72A #2FAC2A
monochromatic
#2C124A #491E7B #662AAC #8442D1 #A473DD

Accessibility & contrast

On white

8.43
#662AAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#662AAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662AAC
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662AAC#FFFFFF#000000##FFFFFF
##662AAC1.008.432.498.43
#FFFFFF8.431.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB0
Deuteranopia (green-blind)
#004CA9
Tritanopia (blue-blind)
#554C69
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #662aac;
/* rgb */ color: rgb(102, 42, 172);
/* oklch */ color: oklch(44.4% 0.192 299.3);
Tailwind
colors: {
  custom: {
    50: '#986ac6',
    500: '#662aac',
    950: '#000000',
  },
}
SCSS
$custom: #662aac;
$custom-light: #986ac6;
$custom-dark: #000000;
JSON
{
  "hex": "#662aac",
  "rgb": {
    "r": 102,
    "g": 42,
    "b": 172
  },
  "hsl": {
    "h": 267.692,
    "s": 60.748,
    "l": 41.961
  },
  "oklch": {
    "l": 0.44439,
    "c": 0.19248,
    "h": 299.3
  },
  "luminance": 0.07459
}

Semantic roles & 50–950 ramp

primary
#662AAC
secondary
#9CC46D
accent
#E4449A
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #662AAC

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

Preview Lab → · Contrast checker → · Palette generator →

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