#662EA4#662EA4

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

Color values

HEX#662EA4
RGBrgb(102, 46, 164)
HSLhsl(268, 56%, 41%)
HSVhsv(268, 72%, 64%)
CMYKcmyk(37.8%, 72%, 0%, 35.7%)
CIE-LABlab(32.83, 48.17, -53.93)
CIE-LCHlch(32.83, 72.31, 311.77°)
OKLaboklab(44.24% 0.0921 -0.1538)
OKLCHoklch(44.24% 0.179 300.9)
XYZxyz(13.1557, 7.4590, 35.8614)
Luminance0.0746 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662EA4 #6CA42E
analogous
#2E31A4 #662EA4 #A12EA4
triadic
#662EA4 #A4662E #2EA466
tetradic
#662EA4 #A42E31 #6CA42E #2EA4A1
square
#662EA4 #A42E31 #6CA42E #2EA4A1
split-complementary
#662EA4 #A4A12E #31A42E
monochromatic
#2B1344 #482174 #662EA4 #8445CB #A474D8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##662EA4#FFFFFF#000000##FFFFFF
##662EA41.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)
#004DA7
Deuteranopia (green-blind)
#004CA2
Tritanopia (blue-blind)
#584B66
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #662ea4;
/* rgb */ color: rgb(102, 46, 164);
/* oklch */ color: oklch(44.2% 0.179 300.9);
Tailwind
colors: {
  custom: {
    50: '#976cc0',
    500: '#662ea4',
    950: '#000000',
  },
}
SCSS
$custom: #662ea4;
$custom-light: #976cc0;
$custom-dark: #000000;
JSON
{
  "hex": "#662ea4",
  "rgb": {
    "r": 102,
    "g": 46,
    "b": 164
  },
  "hsl": {
    "h": 268.475,
    "s": 56.19,
    "l": 41.176
  },
  "oklch": {
    "l": 0.44236,
    "c": 0.17923,
    "h": 300.9
  },
  "luminance": 0.07459
}

Semantic roles & 50–950 ramp

primary
#662EA4
secondary
#99C06E
accent
#DF4898
background
#F9F6FB
surface
#F2ECF7
border
#CCC7D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #662EA4

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

Preview Lab → · Contrast checker → · Palette generator →

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