#662EA0#662EA0

#662EA0 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 43.9% C 0.175 H 302.1°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#662EA0
RGBrgb(102, 46, 160)
HSLhsl(269, 55%, 40%)
HSVhsv(269, 71%, 63%)
CMYKcmyk(36.2%, 71.2%, 0%, 37.3%)
CIE-LABlab(32.52, 47.16, -52.02)
CIE-LCHlch(32.52, 70.22, 312.19°)
OKLaboklab(43.92% 0.0928 -0.1482)
OKLCHoklch(43.92% 0.175 302.1)
XYZxyz(12.8001, 7.3168, 33.9888)
Luminance0.0732 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662EA0 #68A02E
analogous
#2E2FA0 #662EA0 #9F2EA0
triadic
#662EA0 #A0662E #2EA066
tetradic
#662EA0 #A02E2F #68A02E #2EA09F
square
#662EA0 #A02E2F #68A02E #2EA09F
split-complementary
#662EA0 #A09F2E #2FA02E
monochromatic
#291341 #482070 #662EA0 #8442C9 #A372D6

Accessibility & contrast

On white

8.52
#662EA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#662EA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662EA0
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662EA0#FFFFFF#000000##FFFFFF
##662EA01.008.522.468.52
#FFFFFF8.521.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA3
Deuteranopia (green-blind)
#004C9E
Tritanopia (blue-blind)
#5A4964
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #662ea0;
/* rgb */ color: rgb(102, 46, 160);
/* oklch */ color: oklch(43.9% 0.175 302.1);
Tailwind
colors: {
  custom: {
    50: '#976bbd',
    500: '#662ea0',
    950: '#000000',
  },
}
SCSS
$custom: #662ea0;
$custom-light: #976bbd;
$custom-dark: #000000;
JSON
{
  "hex": "#662ea0",
  "rgb": {
    "r": 102,
    "g": 46,
    "b": 160
  },
  "hsl": {
    "h": 269.474,
    "s": 55.34,
    "l": 40.392
  },
  "oklch": {
    "l": 0.43916,
    "c": 0.17482,
    "h": 302.1
  },
  "luminance": 0.07317
}

Semantic roles & 50–950 ramp

primary
#662EA0
secondary
#96BE6C
accent
#DF4995
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #662EA0

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

Preview Lab → · Contrast checker → · Palette generator →

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