#662DB2#662DB2

#662DB2 is a mid, vivid violet. Relative luminance 0.079; OKLCH L 45.3% C 0.196 H 297.4°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#662DB2
RGBrgb(102, 45, 178)
HSLhsl(266, 60%, 44%)
HSVhsv(266, 75%, 70%)
CMYKcmyk(42.7%, 74.7%, 0%, 30.2%)
CIE-LABlab(33.81, 52.19, -60.72)
CIE-LCHlch(33.81, 80.06, 310.68°)
OKLaboklab(45.28% 0.0901 -0.1737)
OKLCHoklch(45.28% 0.196 297.4)
XYZxyz(14.4517, 7.9156, 42.8773)
Luminance0.0792 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662DB2 #79B22D
analogous
#2D37B2 #662DB2 #A82DB2
triadic
#662DB2 #B2662D #2DB266
tetradic
#662DB2 #B22D37 #79B22D #2DB2A8
square
#662DB2 #B22D37 #79B22D #2DB2A8
split-complementary
#662DB2 #B2A82D #37B22D
monochromatic
#2E1450 #4A2181 #662DB2 #844BD1 #A67CDE

Accessibility & contrast

On white

8.13
#662DB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#662DB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662DB2
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662DB2#FFFFFF#000000##FFFFFF
##662DB21.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B6
Deuteranopia (green-blind)
#004EAF
Tritanopia (blue-blind)
#52506D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #662db2;
/* rgb */ color: rgb(102, 45, 178);
/* oklch */ color: oklch(45.3% 0.196 297.4);
Tailwind
colors: {
  custom: {
    50: '#996cca',
    500: '#662db2',
    950: '#000000',
  },
}
SCSS
$custom: #662db2;
$custom-light: #996cca;
$custom-dark: #000000;
JSON
{
  "hex": "#662db2",
  "rgb": {
    "r": 102,
    "g": 45,
    "b": 178
  },
  "hsl": {
    "h": 265.714,
    "s": 59.641,
    "l": 43.725
  },
  "oklch": {
    "l": 0.45282,
    "c": 0.19568,
    "h": 297.4
  },
  "luminance": 0.07916
}

Semantic roles & 50–950 ramp

primary
#662DB2
secondary
#A3C675
accent
#E3459F
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0F0713
muted
#7E7A82

Preview Lab

Preview with #662DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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