#662EA9#662EA9

#662EA9 is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.6% C 0.185 H 299.5°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#662EA9
RGBrgb(102, 46, 169)
HSLhsl(267, 57%, 42%)
HSVhsv(267, 73%, 66%)
CMYKcmyk(39.6%, 72.8%, 0%, 33.7%)
CIE-LABlab(33.23, 49.43, -56.29)
CIE-LCHlch(33.23, 74.91, 311.29°)
OKLaboklab(44.64% 0.0911 -0.1607)
OKLCHoklch(44.64% 0.185 299.5)
XYZxyz(13.6161, 7.6432, 38.2863)
Luminance0.0764 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662EA9 #71A92E
analogous
#2E34A9 #662EA9 #A42EA9
triadic
#662EA9 #A9662E #2EA966
tetradic
#662EA9 #A92E34 #71A92E #2EA9A4
square
#662EA9 #A92E34 #71A92E #2EA9A4
split-complementary
#662EA9 #A9A42E #34A92E
monochromatic
#2C1449 #492179 #662EA9 #8447CD #A477DA

Accessibility & contrast

On white

8.30
#662EA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#662EA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662EA9
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662EA9#FFFFFF#000000##FFFFFF
##662EA91.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAD
Deuteranopia (green-blind)
#004DA7
Tritanopia (blue-blind)
#564D69
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #662ea9;
/* rgb */ color: rgb(102, 46, 169);
/* oklch */ color: oklch(44.6% 0.185 299.5);
Tailwind
colors: {
  custom: {
    50: '#986cc3',
    500: '#662ea9',
    950: '#000000',
  },
}
SCSS
$custom: #662ea9;
$custom-light: #986cc3;
$custom-dark: #000000;
JSON
{
  "hex": "#662ea9",
  "rgb": {
    "r": 102,
    "g": 46,
    "b": 169
  },
  "hsl": {
    "h": 267.317,
    "s": 57.209,
    "l": 42.157
  },
  "oklch": {
    "l": 0.44644,
    "c": 0.18474,
    "h": 299.5
  },
  "luminance": 0.07643
}

Semantic roles & 50–950 ramp

primary
#662EA9
secondary
#9DC271
accent
#E0479B
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #662EA9

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

Preview Lab → · Contrast checker → · Palette generator →

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