#662BAE#662BAE

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

Color values

HEX#662BAE
RGBrgb(102, 43, 174)
HSLhsl(267, 60%, 43%)
HSVhsv(267, 75%, 68%)
CMYKcmyk(41.4%, 75.3%, 0%, 31.8%)
CIE-LABlab(33.15, 52.07, -59.40)
CIE-LCHlch(33.15, 79.00, 311.24°)
OKLaboklab(44.72% 0.0928 -0.1698)
OKLCHoklch(44.72% 0.194 298.7)
XYZxyz(13.9814, 7.6083, 40.7681)
Luminance0.0761 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662BAE #73AE2B
analogous
#2B31AE #662BAE #A82BAE
triadic
#662BAE #AE662B #2BAE66
tetradic
#662BAE #AE2B31 #73AE2B #2BAEA8
square
#662BAE #AE2B31 #73AE2B #2BAEA8
split-complementary
#662BAE #AEA82B #31AE2B
monochromatic
#2C134C #491F7D #662BAE #8445D1 #A576DD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##662BAE#FFFFFF#000000##FFFFFF
##662BAE1.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)
#004EB2
Deuteranopia (green-blind)
#004DAB
Tritanopia (blue-blind)
#544D6B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #662bae;
/* rgb */ color: rgb(102, 43, 174);
/* oklch */ color: oklch(44.7% 0.194 298.7);
Tailwind
colors: {
  custom: {
    50: '#986ac7',
    500: '#662bae',
    950: '#000000',
  },
}
SCSS
$custom: #662bae;
$custom-light: #986ac7;
$custom-dark: #000000;
JSON
{
  "hex": "#662bae",
  "rgb": {
    "r": 102,
    "g": 43,
    "b": 174
  },
  "hsl": {
    "h": 267.023,
    "s": 60.369,
    "l": 42.549
  },
  "oklch": {
    "l": 0.44719,
    "c": 0.19354,
    "h": 298.7
  },
  "luminance": 0.07609
}

Semantic roles & 50–950 ramp

primary
#662BAE
secondary
#9FC570
accent
#E4449C
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #662BAE

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

Preview Lab → · Contrast checker → · Palette generator →

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