#662DB9#662DB9

#662DB9 is a mid, highly saturated violet. Relative luminance 0.082; OKLCH L 45.9% C 0.203 H 295.8°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#662DB9
RGBrgb(102, 45, 185)
HSLhsl(264, 61%, 45%)
HSVhsv(264, 76%, 73%)
CMYKcmyk(44.9%, 75.7%, 0%, 27.5%)
CIE-LABlab(34.40, 53.97, -63.90)
CIE-LCHlch(34.40, 83.64, 310.19°)
OKLaboklab(45.89% 0.0883 -0.183)
OKLCHoklch(45.89% 0.203 295.8)
XYZxyz(15.1725, 8.2040, 46.6737)
Luminance0.0820 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662DB9 #80B92D
analogous
#2D3AB9 #662DB9 #AC2DB9
triadic
#662DB9 #B9662D #2DB966
tetradic
#662DB9 #B92D3A #80B92D #2DB9AC
square
#662DB9 #B92D3A #80B92D #2DB9AC
split-complementary
#662DB9 #B9AC2D #3AB92D
monochromatic
#301557 #4B2188 #662DB9 #854FD4 #A780E0

Accessibility & contrast

On white

7.95
#662DB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#662DB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662DB9
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662DB9#FFFFFF#000000##FFFFFF
##662DB91.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BD
Deuteranopia (green-blind)
#004FB6
Tritanopia (blue-blind)
#4F5371
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #662db9;
/* rgb */ color: rgb(102, 45, 185);
/* oklch */ color: oklch(45.9% 0.203 295.8);
Tailwind
colors: {
  custom: {
    50: '#996ccf',
    500: '#662db9',
    950: '#000000',
  },
}
SCSS
$custom: #662db9;
$custom-light: #996ccf;
$custom-dark: #000000;
JSON
{
  "hex": "#662db9",
  "rgb": {
    "r": 102,
    "g": 45,
    "b": 185
  },
  "hsl": {
    "h": 264.429,
    "s": 60.87,
    "l": 45.098
  },
  "oklch": {
    "l": 0.45887,
    "c": 0.20323,
    "h": 295.8
  },
  "luminance": 0.08204
}

Semantic roles & 50–950 ramp

primary
#662DB9
secondary
#A8C979
accent
#E444A3
background
#FAF6FC
surface
#F3ECF9
border
#CDC7D2
text
#0F0714
muted
#7F7A82

Preview Lab

Preview with #662DB9

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

Preview Lab → · Contrast checker → · Palette generator →

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