#662DB5#662DB5

#662DB5 is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.5% C 0.199 H 296.7°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#662DB5
RGBrgb(102, 45, 181)
HSLhsl(265, 60%, 44%)
HSVhsv(265, 75%, 71%)
CMYKcmyk(43.6%, 75.1%, 0%, 29%)
CIE-LABlab(34.06, 52.95, -62.09)
CIE-LCHlch(34.06, 81.60, 310.46°)
OKLaboklab(45.54% 0.0893 -0.1777)
OKLCHoklch(45.54% 0.199 296.7)
XYZxyz(14.7562, 8.0374, 44.4810)
Luminance0.0804 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662DB5 #7CB52D
analogous
#2D38B5 #662DB5 #AA2DB5
triadic
#662DB5 #B5662D #2DB566
tetradic
#662DB5 #B52D38 #7CB52D #2DB5AA
square
#662DB5 #B52D38 #7CB52D #2DB5AA
split-complementary
#662DB5 #B5AA2D #38B52D
monochromatic
#2F1553 #4A2184 #662DB5 #854DD3 #A67EDF

Accessibility & contrast

On white

8.05
#662DB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#662DB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662DB5
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662DB5#FFFFFF#000000##FFFFFF
##662DB51.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B9
Deuteranopia (green-blind)
#004EB2
Tritanopia (blue-blind)
#51516F
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #662db5;
/* rgb */ color: rgb(102, 45, 181);
/* oklch */ color: oklch(45.5% 0.199 296.7);
Tailwind
colors: {
  custom: {
    50: '#996ccc',
    500: '#662db5',
    950: '#000000',
  },
}
SCSS
$custom: #662db5;
$custom-light: #996ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#662db5",
  "rgb": {
    "r": 102,
    "g": 45,
    "b": 181
  },
  "hsl": {
    "h": 265.147,
    "s": 60.177,
    "l": 44.314
  },
  "oklch": {
    "l": 0.4554,
    "c": 0.19892,
    "h": 296.7
  },
  "luminance": 0.08038
}

Semantic roles & 50–950 ramp

primary
#662DB5
secondary
#A5C776
accent
#E344A1
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0F0713
muted
#7E7A82

Preview Lab

Preview with #662DB5

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

Preview Lab → · Contrast checker → · Palette generator →

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