#662FA4#662FA4

#662FA4 is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.4% C 0.178 H 300.8°. Best body text is #FFFFFF at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#662FA4
RGBrgb(102, 47, 164)
HSLhsl(268, 55%, 41%)
HSVhsv(268, 71%, 64%)
CMYKcmyk(37.8%, 71.3%, 0%, 35.7%)
CIE-LABlab(33.00, 47.68, -53.65)
CIE-LCHlch(33.00, 71.78, 311.63°)
OKLaboklab(44.36% 0.0911 -0.153)
OKLCHoklch(44.36% 0.178 300.8)
XYZxyz(13.1952, 7.5381, 35.8746)
Luminance0.0754 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662FA4 #6DA42F
analogous
#2F33A4 #662FA4 #A12FA4
triadic
#662FA4 #A4662F #2FA466
tetradic
#662FA4 #A42F33 #6DA42F #2FA4A1
square
#662FA4 #A42F33 #6DA42F #2FA4A1
split-complementary
#662FA4 #A4A12F #33A42F
monochromatic
#2B1445 #482174 #662FA4 #8446CA #A476D8

Accessibility & contrast

On white

8.37
#662FA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#662FA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662FA4
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662FA4#FFFFFF#000000##FFFFFF
##662FA41.008.372.518.37
#FFFFFF8.371.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA7
Deuteranopia (green-blind)
#004DA2
Tritanopia (blue-blind)
#584B66
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #662fa4;
/* rgb */ color: rgb(102, 47, 164);
/* oklch */ color: oklch(44.4% 0.178 300.8);
Tailwind
colors: {
  custom: {
    50: '#976cc0',
    500: '#662fa4',
    950: '#000000',
  },
}
SCSS
$custom: #662fa4;
$custom-light: #976cc0;
$custom-dark: #000000;
JSON
{
  "hex": "#662fa4",
  "rgb": {
    "r": 102,
    "g": 47,
    "b": 164
  },
  "hsl": {
    "h": 268.205,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.44359,
    "c": 0.17801,
    "h": 300.8
  },
  "luminance": 0.07538
}

Semantic roles & 50–950 ramp

primary
#662FA4
secondary
#9AC06F
accent
#DF4998
background
#F9F6FB
surface
#F2ECF7
border
#CCC7D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #662FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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