#662EAA#662EAA

#662EAA is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.7% C 0.186 H 299.3°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#662EAA
RGBrgb(102, 46, 170)
HSLhsl(267, 57%, 42%)
HSVhsv(267, 73%, 67%)
CMYKcmyk(40%, 72.9%, 0%, 33.3%)
CIE-LABlab(33.31, 49.68, -56.76)
CIE-LCHlch(33.31, 75.43, 311.20°)
OKLaboklab(44.73% 0.0909 -0.1621)
OKLCHoklch(44.73% 0.186 299.3)
XYZxyz(13.7104, 7.6809, 38.7826)
Luminance0.0768 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662EAA #72AA2E
analogous
#2E34AA #662EAA #A42EAA
triadic
#662EAA #AA662E #2EAA66
tetradic
#662EAA #AA2E34 #72AA2E #2EAAA4
square
#662EAA #AA2E34 #72AA2E #2EAAA4
split-complementary
#662EAA #AAA42E #34AA2E
monochromatic
#2C144A #49217A #662EAA #8448CD #A478DA

Accessibility & contrast

On white

8.28
#662EAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#662EAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662EAA
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662EAA#FFFFFF#000000##FFFFFF
##662EAA1.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #662eaa;
/* rgb */ color: rgb(102, 46, 170);
/* oklch */ color: oklch(44.7% 0.186 299.3);
Tailwind
colors: {
  custom: {
    50: '#986cc4',
    500: '#662eaa',
    950: '#000000',
  },
}
SCSS
$custom: #662eaa;
$custom-light: #986cc4;
$custom-dark: #000000;
JSON
{
  "hex": "#662eaa",
  "rgb": {
    "r": 102,
    "g": 46,
    "b": 170
  },
  "hsl": {
    "h": 267.097,
    "s": 57.407,
    "l": 42.353
  },
  "oklch": {
    "l": 0.44726,
    "c": 0.18583,
    "h": 299.3
  },
  "luminance": 0.07681
}

Semantic roles & 50–950 ramp

primary
#662EAA
secondary
#9EC371
accent
#E1479B
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #662EAA

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

Preview Lab → · Contrast checker → · Palette generator →

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