#662DB8#662DB8

#662DB8 is a mid, highly saturated violet. Relative luminance 0.082; OKLCH L 45.8% C 0.202 H 296.0°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#662DB8
RGBrgb(102, 45, 184)
HSLhsl(265, 61%, 45%)
HSVhsv(265, 76%, 72%)
CMYKcmyk(44.6%, 75.5%, 0%, 27.8%)
CIE-LABlab(34.32, 53.72, -63.45)
CIE-LCHlch(34.32, 83.13, 310.25°)
OKLaboklab(45.8% 0.0886 -0.1817)
OKLCHoklch(45.8% 0.202 296)
XYZxyz(15.0673, 8.1619, 46.1197)
Luminance0.0816 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662DB8 #7FB82D
analogous
#2D3AB8 #662DB8 #AB2DB8
triadic
#662DB8 #B8662D #2DB866
tetradic
#662DB8 #B82D3A #7FB82D #2DB8AB
square
#662DB8 #B82D3A #7FB82D #2DB8AB
split-complementary
#662DB8 #B8AB2D #3AB82D
monochromatic
#2F1556 #4B2187 #662DB8 #854ED4 #A780E0

Accessibility & contrast

On white

7.98
#662DB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#662DB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662DB8
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662DB8#FFFFFF#000000##FFFFFF
##662DB81.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BC
Deuteranopia (green-blind)
#004FB5
Tritanopia (blue-blind)
#4F5271
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #662db8;
/* rgb */ color: rgb(102, 45, 184);
/* oklch */ color: oklch(45.8% 0.202 296.0);
Tailwind
colors: {
  custom: {
    50: '#996cce',
    500: '#662db8',
    950: '#000000',
  },
}
SCSS
$custom: #662db8;
$custom-light: #996cce;
$custom-dark: #000000;
JSON
{
  "hex": "#662db8",
  "rgb": {
    "r": 102,
    "g": 45,
    "b": 184
  },
  "hsl": {
    "h": 264.604,
    "s": 60.699,
    "l": 44.902
  },
  "oklch": {
    "l": 0.458,
    "c": 0.20216,
    "h": 296
  },
  "luminance": 0.08162
}

Semantic roles & 50–950 ramp

primary
#662DB8
secondary
#A8C978
accent
#E444A2
background
#FAF6FC
surface
#F3ECF9
border
#CDC7D2
text
#0F0714
muted
#7F7A82

Preview Lab

Preview with #662DB8

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

Preview Lab → · Contrast checker → · Palette generator →

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