#662FA6#662FA6

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

Color values

HEX#662FA6
RGBrgb(102, 47, 166)
HSLhsl(268, 56%, 42%)
HSVhsv(268, 72%, 65%)
CMYKcmyk(38.6%, 71.7%, 0%, 34.9%)
CIE-LABlab(33.16, 48.19, -54.60)
CIE-LCHlch(33.16, 72.82, 311.43°)
OKLaboklab(44.52% 0.0907 -0.1557)
OKLCHoklch(44.52% 0.18 300.2)
XYZxyz(13.3772, 7.6109, 36.8333)
Luminance0.0761 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662FA6 #6FA62F
analogous
#2F34A6 #662FA6 #A22FA6
triadic
#662FA6 #A6662F #2FA666
tetradic
#662FA6 #A62F34 #6FA62F #2FA6A2
square
#662FA6 #A62F34 #6FA62F #2FA6A2
split-complementary
#662FA6 #A6A22F #34A62F
monochromatic
#2B1447 #492176 #662FA6 #8447CB #A477D8

Accessibility & contrast

On white

8.33
#662FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#662FA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662FA6
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662FA6#FFFFFF#000000##FFFFFF
##662FA61.008.332.528.33
#FFFFFF8.331.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.331.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #662fa6;
/* rgb */ color: rgb(102, 47, 166);
/* oklch */ color: oklch(44.5% 0.180 300.2);
Tailwind
colors: {
  custom: {
    50: '#976cc1',
    500: '#662fa6',
    950: '#000000',
  },
}
SCSS
$custom: #662fa6;
$custom-light: #976cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#662fa6",
  "rgb": {
    "r": 102,
    "g": 47,
    "b": 166
  },
  "hsl": {
    "h": 267.731,
    "s": 55.869,
    "l": 41.765
  },
  "oklch": {
    "l": 0.4452,
    "c": 0.18023,
    "h": 300.2
  },
  "luminance": 0.07611
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #662FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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