#662DA3#662DA3

#662DA3 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 44.0% C 0.179 H 301.3°. Best body text is #FFFFFF at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#662DA3
RGBrgb(102, 45, 163)
HSLhsl(269, 57%, 41%)
HSVhsv(269, 72%, 64%)
CMYKcmyk(37.4%, 72.4%, 0%, 36.1%)
CIE-LABlab(32.58, 48.39, -53.73)
CIE-LCHlch(32.58, 72.31, 312.01°)
OKLaboklab(44.04% 0.0933 -0.1532)
OKLCHoklch(44.04% 0.179 301.3)
XYZxyz(13.0271, 7.3458, 35.3748)
Luminance0.0735 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662DA3 #6AA32D
analogous
#2D2FA3 #662DA3 #A12DA3
triadic
#662DA3 #A3662D #2DA366
tetradic
#662DA3 #A32D2F #6AA32D #2DA3A1
square
#662DA3 #A32D2F #6AA32D #2DA3A1
split-complementary
#662DA3 #A3A12D #2FA32D
monochromatic
#2A1343 #482073 #662DA3 #8442CB #A372D8

Accessibility & contrast

On white

8.50
#662DA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#662DA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662DA3
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662DA3#FFFFFF#000000##FFFFFF
##662DA31.008.502.478.50
#FFFFFF8.501.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.501.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: #662da3;
/* rgb */ color: rgb(102, 45, 163);
/* oklch */ color: oklch(44.0% 0.179 301.3);
Tailwind
colors: {
  custom: {
    50: '#976bbf',
    500: '#662da3',
    950: '#000000',
  },
}
SCSS
$custom: #662da3;
$custom-light: #976bbf;
$custom-dark: #000000;
JSON
{
  "hex": "#662da3",
  "rgb": {
    "r": 102,
    "g": 45,
    "b": 163
  },
  "hsl": {
    "h": 268.983,
    "s": 56.731,
    "l": 40.784
  },
  "oklch": {
    "l": 0.44035,
    "c": 0.17935,
    "h": 301.3
  },
  "luminance": 0.07346
}

Semantic roles & 50–950 ramp

primary
#662DA3
secondary
#97C06C
accent
#E04896
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #662DA3

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

Preview Lab → · Contrast checker → · Palette generator →

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