#662CB5#662CB5

#662CB5 is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.4% C 0.200 H 296.8°. Best body text is #FFFFFF at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#662CB5
RGBrgb(102, 44, 181)
HSLhsl(265, 61%, 44%)
HSVhsv(265, 76%, 71%)
CMYKcmyk(43.6%, 75.7%, 0%, 29%)
CIE-LABlab(33.90, 53.40, -62.35)
CIE-LCHlch(33.90, 82.09, 310.58°)
OKLaboklab(45.43% 0.0902 -0.1785)
OKLCHoklch(45.43% 0.2 296.8)
XYZxyz(14.7185, 7.9620, 44.4685)
Luminance0.0796 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662CB5 #7BB52C
analogous
#2C37B5 #662CB5 #AB2CB5
triadic
#662CB5 #B5662C #2CB566
tetradic
#662CB5 #B52C37 #7BB52C #2CB5AB
square
#662CB5 #B52C37 #7BB52C #2CB5AB
split-complementary
#662CB5 #B5AB2C #37B52C
monochromatic
#2F1453 #4A2084 #662CB5 #854BD3 #A67CDF

Accessibility & contrast

On white

8.10
#662CB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#662CB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662CB5
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662CB5#FFFFFF#000000##FFFFFF
##662CB51.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #662cb5;
/* rgb */ color: rgb(102, 44, 181);
/* oklch */ color: oklch(45.4% 0.200 296.8);
Tailwind
colors: {
  custom: {
    50: '#996bcc',
    500: '#662cb5',
    950: '#000000',
  },
}
SCSS
$custom: #662cb5;
$custom-light: #996bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#662cb5",
  "rgb": {
    "r": 102,
    "g": 44,
    "b": 181
  },
  "hsl": {
    "h": 265.401,
    "s": 60.889,
    "l": 44.118
  },
  "oklch": {
    "l": 0.45429,
    "c": 0.19998,
    "h": 296.8
  },
  "luminance": 0.07962
}

Semantic roles & 50–950 ramp

primary
#662CB5
secondary
#A5C875
accent
#E444A0
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0F0713
muted
#7E7A82

Preview Lab

Preview with #662CB5

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

Preview Lab → · Contrast checker → · Palette generator →

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