#662DB7#662DB7

#662DB7 is a mid, highly saturated violet. Relative luminance 0.081; OKLCH L 45.7% C 0.201 H 296.2°. Best body text is #FFFFFF at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#662DB7
RGBrgb(102, 45, 183)
HSLhsl(265, 61%, 45%)
HSVhsv(265, 75%, 72%)
CMYKcmyk(44.3%, 75.4%, 0%, 28.2%)
CIE-LABlab(34.23, 53.46, -62.99)
CIE-LCHlch(34.23, 82.62, 310.32°)
OKLaboklab(45.71% 0.0888 -0.1804)
OKLCHoklch(45.71% 0.201 296.2)
XYZxyz(14.9628, 8.1201, 45.5696)
Luminance0.0812 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662DB7 #7EB72D
analogous
#2D39B7 #662DB7 #AB2DB7
triadic
#662DB7 #B7662D #2DB766
tetradic
#662DB7 #B72D39 #7EB72D #2DB7AB
square
#662DB7 #B72D39 #7EB72D #2DB7AB
split-complementary
#662DB7 #B7AB2D #39B72D
monochromatic
#2F1555 #4B2186 #662DB7 #854ED3 #A77FDF

Accessibility & contrast

On white

8.00
#662DB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#662DB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662DB7
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662DB7#FFFFFF#000000##FFFFFF
##662DB71.008.002.628.00
#FFFFFF8.001.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BB
Deuteranopia (green-blind)
#004FB4
Tritanopia (blue-blind)
#505270
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #662db7;
/* rgb */ color: rgb(102, 45, 183);
/* oklch */ color: oklch(45.7% 0.201 296.2);
Tailwind
colors: {
  custom: {
    50: '#996cce',
    500: '#662db7',
    950: '#000000',
  },
}
SCSS
$custom: #662db7;
$custom-light: #996cce;
$custom-dark: #000000;
JSON
{
  "hex": "#662db7",
  "rgb": {
    "r": 102,
    "g": 45,
    "b": 183
  },
  "hsl": {
    "h": 264.783,
    "s": 60.526,
    "l": 44.706
  },
  "oklch": {
    "l": 0.45713,
    "c": 0.20108,
    "h": 296.2
  },
  "luminance": 0.0812
}

Semantic roles & 50–950 ramp

primary
#662DB7
secondary
#A7C878
accent
#E444A2
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0F0714
muted
#7E7A82

Preview Lab

Preview with #662DB7

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

Preview Lab → · Contrast checker → · Palette generator →

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