#662EA6#662EA6

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

Color values

HEX#662EA6
RGBrgb(102, 46, 166)
HSLhsl(268, 57%, 42%)
HSVhsv(268, 72%, 65%)
CMYKcmyk(38.6%, 72.3%, 0%, 34.9%)
CIE-LABlab(32.99, 48.67, -54.88)
CIE-LCHlch(32.99, 73.35, 311.57°)
OKLaboklab(44.4% 0.0917 -0.1566)
OKLCHoklch(44.4% 0.181 300.4)
XYZxyz(13.3377, 7.5318, 36.8201)
Luminance0.0753 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662EA6 #6EA62E
analogous
#2E32A6 #662EA6 #A22EA6
triadic
#662EA6 #A6662E #2EA666
tetradic
#662EA6 #A62E32 #6EA62E #2EA6A2
square
#662EA6 #A62E32 #6EA62E #2EA6A2
split-complementary
#662EA6 #A6A22E #32A62E
monochromatic
#2B1346 #492176 #662EA6 #8446CC #A476D9

Accessibility & contrast

On white

8.38
#662EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #662EA6
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662EA6#FFFFFF#000000##FFFFFF
##662EA61.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA9
Deuteranopia (green-blind)
#004DA4
Tritanopia (blue-blind)
#584B67
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #662ea6;
/* rgb */ color: rgb(102, 46, 166);
/* oklch */ color: oklch(44.4% 0.181 300.4);
Tailwind
colors: {
  custom: {
    50: '#976cc1',
    500: '#662ea6',
    950: '#000000',
  },
}
SCSS
$custom: #662ea6;
$custom-light: #976cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#662ea6",
  "rgb": {
    "r": 102,
    "g": 46,
    "b": 166
  },
  "hsl": {
    "h": 268,
    "s": 56.604,
    "l": 41.569
  },
  "oklch": {
    "l": 0.44398,
    "c": 0.18144,
    "h": 300.4
  },
  "luminance": 0.07532
}

Semantic roles & 50–950 ramp

primary
#662EA6
secondary
#9BC16F
accent
#E04899
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #662EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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