#662EA7#662EA7

#662EA7 is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.5% C 0.183 H 300.1°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#662EA7
RGBrgb(102, 46, 167)
HSLhsl(268, 57%, 42%)
HSVhsv(268, 72%, 65%)
CMYKcmyk(38.9%, 72.5%, 0%, 34.5%)
CIE-LABlab(33.07, 48.92, -55.35)
CIE-LCHlch(33.07, 73.87, 311.47°)
OKLaboklab(44.48% 0.0915 -0.1579)
OKLCHoklch(44.48% 0.183 300.1)
XYZxyz(13.4298, 7.5687, 37.3051)
Luminance0.0757 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662EA7 #6FA72E
analogous
#2E32A7 #662EA7 #A32EA7
triadic
#662EA7 #A7662E #2EA766
tetradic
#662EA7 #A72E32 #6FA72E #2EA7A3
square
#662EA7 #A72E32 #6FA72E #2EA7A3
split-complementary
#662EA7 #A7A32E #32A72E
monochromatic
#2B1447 #492177 #662EA7 #8446CC #A476D9

Accessibility & contrast

On white

8.35
#662EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #662EA7
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662EA7#FFFFFF#000000##FFFFFF
##662EA71.008.352.518.35
#FFFFFF8.351.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAB
Deuteranopia (green-blind)
#004DA5
Tritanopia (blue-blind)
#574C67
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #662ea7;
/* rgb */ color: rgb(102, 46, 167);
/* oklch */ color: oklch(44.5% 0.183 300.1);
Tailwind
colors: {
  custom: {
    50: '#976cc2',
    500: '#662ea7',
    950: '#000000',
  },
}
SCSS
$custom: #662ea7;
$custom-light: #976cc2;
$custom-dark: #000000;
JSON
{
  "hex": "#662ea7",
  "rgb": {
    "r": 102,
    "g": 46,
    "b": 167
  },
  "hsl": {
    "h": 267.769,
    "s": 56.808,
    "l": 41.765
  },
  "oklch": {
    "l": 0.4448,
    "c": 0.18254,
    "h": 300.1
  },
  "luminance": 0.07569
}

Semantic roles & 50–950 ramp

primary
#662EA7
secondary
#9BC170
accent
#E0489A
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #662EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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