#662EA5#662EA5

#662EA5 is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.3% C 0.180 H 300.6°. Best body text is #FFFFFF at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#662EA5
RGBrgb(102, 46, 165)
HSLhsl(268, 56%, 41%)
HSVhsv(268, 72%, 65%)
CMYKcmyk(38.2%, 72.1%, 0%, 35.3%)
CIE-LABlab(32.91, 48.42, -54.40)
CIE-LCHlch(32.91, 72.83, 311.67°)
OKLaboklab(44.32% 0.0919 -0.1552)
OKLCHoklch(44.32% 0.18 300.6)
XYZxyz(13.2463, 7.4953, 36.3389)
Luminance0.0750 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662EA5 #6DA52E
analogous
#2E32A5 #662EA5 #A22EA5
triadic
#662EA5 #A5662E #2EA566
tetradic
#662EA5 #A52E32 #6DA52E #2EA5A2
square
#662EA5 #A52E32 #6DA52E #2EA5A2
split-complementary
#662EA5 #A5A22E #32A52E
monochromatic
#2B1345 #482175 #662EA5 #8445CB #A475D8

Accessibility & contrast

On white

8.40
#662EA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#662EA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662EA5
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662EA5#FFFFFF#000000##FFFFFF
##662EA51.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA8
Deuteranopia (green-blind)
#004DA3
Tritanopia (blue-blind)
#584B66
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #662ea5;
/* rgb */ color: rgb(102, 46, 165);
/* oklch */ color: oklch(44.3% 0.180 300.6);
Tailwind
colors: {
  custom: {
    50: '#976cc1',
    500: '#662ea5',
    950: '#000000',
  },
}
SCSS
$custom: #662ea5;
$custom-light: #976cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#662ea5",
  "rgb": {
    "r": 102,
    "g": 46,
    "b": 165
  },
  "hsl": {
    "h": 268.235,
    "s": 56.398,
    "l": 41.373
  },
  "oklch": {
    "l": 0.44317,
    "c": 0.18034,
    "h": 300.6
  },
  "luminance": 0.07495
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #662EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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