#662EB6#662EB6

#662EB6 is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.7% C 0.199 H 296.3°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#662EB6
RGBrgb(102, 46, 182)
HSLhsl(265, 60%, 45%)
HSVhsv(265, 75%, 71%)
CMYKcmyk(44%, 74.7%, 0%, 28.6%)
CIE-LABlab(34.31, 52.75, -62.28)
CIE-LCHlch(34.31, 81.62, 310.26°)
OKLaboklab(45.74% 0.0882 -0.1783)
OKLCHoklch(45.74% 0.199 296.3)
XYZxyz(14.8977, 8.1558, 45.0362)
Luminance0.0816 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662EB6 #7EB62E
analogous
#2E3AB6 #662EB6 #AA2EB6
triadic
#662EB6 #B6662E #2EB666
tetradic
#662EB6 #B62E3A #7EB62E #2EB6AA
square
#662EB6 #B62E3A #7EB62E #2EB6AA
split-complementary
#662EB6 #B6AA2E #3AB62E
monochromatic
#2F1554 #4B2285 #662EB6 #854FD2 #A780DF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##662EB6#FFFFFF#000000##FFFFFF
##662EB61.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)
#0051BA
Deuteranopia (green-blind)
#004FB3
Tritanopia (blue-blind)
#505270
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #662eb6;
/* rgb */ color: rgb(102, 46, 182);
/* oklch */ color: oklch(45.7% 0.199 296.3);
Tailwind
colors: {
  custom: {
    50: '#996ccd',
    500: '#662eb6',
    950: '#000000',
  },
}
SCSS
$custom: #662eb6;
$custom-light: #996ccd;
$custom-dark: #000000;
JSON
{
  "hex": "#662eb6",
  "rgb": {
    "r": 102,
    "g": 46,
    "b": 182
  },
  "hsl": {
    "h": 264.706,
    "s": 59.649,
    "l": 44.706
  },
  "oklch": {
    "l": 0.45738,
    "c": 0.19894,
    "h": 296.3
  },
  "luminance": 0.08156
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #662EB6

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

Preview Lab → · Contrast checker → · Palette generator →

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