#662BA3#662BA3

#662BA3 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.8% C 0.182 H 301.6°. Best body text is #FFFFFF at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#662BA3
RGBrgb(102, 43, 163)
HSLhsl(270, 58%, 40%)
HSVhsv(270, 74%, 64%)
CMYKcmyk(37.4%, 73.6%, 0%, 36.1%)
CIE-LABlab(32.25, 49.32, -54.27)
CIE-LCHlch(32.25, 73.33, 312.27°)
OKLaboklab(43.8% 0.0953 -0.1547)
OKLCHoklch(43.8% 0.182 301.6)
XYZxyz(12.9526, 7.1968, 35.3500)
Luminance0.0720 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662BA3 #68A32B
analogous
#2B2CA3 #662BA3 #A22BA3
triadic
#662BA3 #A3662B #2BA366
tetradic
#662BA3 #A32B2C #68A32B #2BA3A2
square
#662BA3 #A32B2C #68A32B #2BA3A2
split-complementary
#662BA3 #A3A22B #2CA32B
monochromatic
#291142 #481E73 #662BA3 #843FCC #A36FD9

Accessibility & contrast

On white

8.61
#662BA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#662BA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662BA3
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662BA3#FFFFFF#000000##FFFFFF
##662BA31.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA6
Deuteranopia (green-blind)
#004BA1
Tritanopia (blue-blind)
#594964
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #662ba3;
/* rgb */ color: rgb(102, 43, 163);
/* oklch */ color: oklch(43.8% 0.182 301.6);
Tailwind
colors: {
  custom: {
    50: '#976abf',
    500: '#662ba3',
    950: '#000000',
  },
}
SCSS
$custom: #662ba3;
$custom-light: #976abf;
$custom-dark: #000000;
JSON
{
  "hex": "#662ba3",
  "rgb": {
    "r": 102,
    "g": 43,
    "b": 163
  },
  "hsl": {
    "h": 269.5,
    "s": 58.252,
    "l": 40.392
  },
  "oklch": {
    "l": 0.43801,
    "c": 0.18172,
    "h": 301.6
  },
  "luminance": 0.07197
}

Semantic roles & 50–950 ramp

primary
#662BA3
secondary
#96C06A
accent
#E14695
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #662BA3

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

Preview Lab → · Contrast checker → · Palette generator →

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