#662CB6#662CB6

#662CB6 is a mid, highly saturated violet. Relative luminance 0.080; OKLCH L 45.5% C 0.201 H 296.6°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#662CB6
RGBrgb(102, 44, 182)
HSLhsl(265, 61%, 44%)
HSVhsv(265, 76%, 71%)
CMYKcmyk(44%, 75.8%, 0%, 28.6%)
CIE-LABlab(33.99, 53.65, -62.80)
CIE-LCHlch(33.99, 82.60, 310.51°)
OKLaboklab(45.52% 0.0899 -0.1798)
OKLCHoklch(45.52% 0.201 296.6)
XYZxyz(14.8214, 8.0032, 45.0108)
Luminance0.0800 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662CB6 #7CB62C
analogous
#2C37B6 #662CB6 #AB2CB6
triadic
#662CB6 #B6662C #2CB666
tetradic
#662CB6 #B62C37 #7CB62C #2CB6AB
square
#662CB6 #B62C37 #7CB62C #2CB6AB
split-complementary
#662CB6 #B6AB2C #37B62C
monochromatic
#2F1453 #4A2085 #662CB6 #854CD4 #A67DE0

Accessibility & contrast

On white

8.07
#662CB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#662CB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662CB6
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662CB6#FFFFFF#000000##FFFFFF
##662CB61.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #662cb6;
/* rgb */ color: rgb(102, 44, 182);
/* oklch */ color: oklch(45.5% 0.201 296.6);
Tailwind
colors: {
  custom: {
    50: '#996bcd',
    500: '#662cb6',
    950: '#000000',
  },
}
SCSS
$custom: #662cb6;
$custom-light: #996bcd;
$custom-dark: #000000;
JSON
{
  "hex": "#662cb6",
  "rgb": {
    "r": 102,
    "g": 44,
    "b": 182
  },
  "hsl": {
    "h": 265.217,
    "s": 61.062,
    "l": 44.314
  },
  "oklch": {
    "l": 0.45516,
    "c": 0.20105,
    "h": 296.6
  },
  "luminance": 0.08004
}

Semantic roles & 50–950 ramp

primary
#662CB6
secondary
#A5C876
accent
#E444A1
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0F0714
muted
#7E7A82

Preview Lab

Preview with #662CB6

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

Preview Lab → · Contrast checker → · Palette generator →

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