#662FA1#662FA1

#662FA1 is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.1% C 0.175 H 301.6°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#662FA1
RGBrgb(102, 47, 161)
HSLhsl(269, 55%, 41%)
HSVhsv(269, 71%, 63%)
CMYKcmyk(36.6%, 70.8%, 0%, 36.9%)
CIE-LABlab(32.77, 46.93, -52.22)
CIE-LCHlch(32.77, 70.20, 311.94°)
OKLaboklab(44.12% 0.0916 -0.1487)
OKLCHoklch(44.12% 0.175 301.6)
XYZxyz(12.9275, 7.4310, 34.4646)
Luminance0.0743 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662FA1 #6AA12F
analogous
#2F31A1 #662FA1 #9F2FA1
triadic
#662FA1 #A1662F #2FA166
tetradic
#662FA1 #A12F31 #6AA12F #2FA19F
square
#662FA1 #A12F31 #6AA12F #2FA19F
split-complementary
#662FA1 #A19F2F #31A12F
monochromatic
#2A1342 #482172 #662FA1 #8445C9 #A374D6

Accessibility & contrast

On white

8.45
#662FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#662FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662FA1
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662FA1#FFFFFF#000000##FFFFFF
##662FA11.008.452.498.45
#FFFFFF8.451.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA4
Deuteranopia (green-blind)
#004C9F
Tritanopia (blue-blind)
#594A64
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #662fa1;
/* rgb */ color: rgb(102, 47, 161);
/* oklch */ color: oklch(44.1% 0.175 301.6);
Tailwind
colors: {
  custom: {
    50: '#976cbe',
    500: '#662fa1',
    950: '#000000',
  },
}
SCSS
$custom: #662fa1;
$custom-light: #976cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#662fa1",
  "rgb": {
    "r": 102,
    "g": 47,
    "b": 161
  },
  "hsl": {
    "h": 268.947,
    "s": 54.808,
    "l": 40.784
  },
  "oklch": {
    "l": 0.44119,
    "c": 0.17468,
    "h": 301.6
  },
  "luminance": 0.07431
}

Semantic roles & 50–950 ramp

primary
#662FA1
secondary
#97BE6E
accent
#DE4A97
background
#F9F6FB
surface
#F2ECF7
border
#CCC7D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #662FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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