#662EA2#662EA2

#662EA2 is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.1% C 0.177 H 301.5°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#662EA2
RGBrgb(102, 46, 162)
HSLhsl(269, 56%, 41%)
HSVhsv(269, 72%, 64%)
CMYKcmyk(37%, 71.6%, 0%, 36.5%)
CIE-LABlab(32.67, 47.66, -52.98)
CIE-LCHlch(32.67, 71.26, 311.98°)
OKLaboklab(44.08% 0.0925 -0.151)
OKLCHoklch(44.08% 0.177 301.5)
XYZxyz(12.9765, 7.3873, 34.9177)
Luminance0.0739 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662EA2 #6AA22E
analogous
#2E30A2 #662EA2 #A02EA2
triadic
#662EA2 #A2662E #2EA266
tetradic
#662EA2 #A22E30 #6AA22E #2EA2A0
square
#662EA2 #A22E30 #6AA22E #2EA2A0
split-complementary
#662EA2 #A2A02E #30A22E
monochromatic
#2A1343 #482072 #662EA2 #8443CA #A373D7

Accessibility & contrast

On white

8.48
#662EA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#662EA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662EA2
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662EA2#FFFFFF#000000##FFFFFF
##662EA21.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA5
Deuteranopia (green-blind)
#004CA0
Tritanopia (blue-blind)
#594A65
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #662ea2;
/* rgb */ color: rgb(102, 46, 162);
/* oklch */ color: oklch(44.1% 0.177 301.5);
Tailwind
colors: {
  custom: {
    50: '#976cbe',
    500: '#662ea2',
    950: '#000000',
  },
}
SCSS
$custom: #662ea2;
$custom-light: #976cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#662ea2",
  "rgb": {
    "r": 102,
    "g": 46,
    "b": 162
  },
  "hsl": {
    "h": 268.966,
    "s": 55.769,
    "l": 40.784
  },
  "oklch": {
    "l": 0.44076,
    "c": 0.17704,
    "h": 301.5
  },
  "luminance": 0.07387
}

Semantic roles & 50–950 ramp

primary
#662EA2
secondary
#97BF6D
accent
#DF4996
background
#F9F6FB
surface
#F2ECF7
border
#CCC7D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #662EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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