#662EA3#662EA3

#662EA3 is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.2% C 0.178 H 301.2°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#662EA3
RGBrgb(102, 46, 163)
HSLhsl(269, 56%, 41%)
HSVhsv(269, 72%, 64%)
CMYKcmyk(37.4%, 71.8%, 0%, 36.1%)
CIE-LABlab(32.75, 47.91, -53.45)
CIE-LCHlch(32.75, 71.79, 311.87°)
OKLaboklab(44.16% 0.0923 -0.1524)
OKLCHoklch(44.16% 0.178 301.2)
XYZxyz(13.0657, 7.4230, 35.3877)
Luminance0.0742 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662EA3 #6BA32E
analogous
#2E30A3 #662EA3 #A02EA3
triadic
#662EA3 #A3662E #2EA366
tetradic
#662EA3 #A32E30 #6BA32E #2EA3A0
square
#662EA3 #A32E30 #6BA32E #2EA3A0
split-complementary
#662EA3 #A3A02E #30A32E
monochromatic
#2A1344 #482173 #662EA3 #8444CA #A474D8

Accessibility & contrast

On white

8.45
#662EA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #662EA3
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662EA3#FFFFFF#000000##FFFFFF
##662EA31.008.452.488.45
#FFFFFF8.451.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #662ea3;
/* rgb */ color: rgb(102, 46, 163);
/* oklch */ color: oklch(44.2% 0.178 301.2);
Tailwind
colors: {
  custom: {
    50: '#976cbf',
    500: '#662ea3',
    950: '#000000',
  },
}
SCSS
$custom: #662ea3;
$custom-light: #976cbf;
$custom-dark: #000000;
JSON
{
  "hex": "#662ea3",
  "rgb": {
    "r": 102,
    "g": 46,
    "b": 163
  },
  "hsl": {
    "h": 268.718,
    "s": 55.981,
    "l": 40.98
  },
  "oklch": {
    "l": 0.44156,
    "c": 0.17814,
    "h": 301.2
  },
  "luminance": 0.07423
}

Semantic roles & 50–950 ramp

primary
#662EA3
secondary
#98BF6D
accent
#DF4997
background
#F9F6FB
surface
#F2ECF7
border
#CCC7D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #662EA3

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

Preview Lab → · Contrast checker → · Palette generator →

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