#662EB5#662EB5

#662EB5 is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.7% C 0.198 H 296.6°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#662EB5
RGBrgb(102, 46, 181)
HSLhsl(265, 59%, 45%)
HSVhsv(265, 75%, 71%)
CMYKcmyk(43.6%, 74.6%, 0%, 29%)
CIE-LABlab(34.22, 52.50, -61.83)
CIE-LCHlch(34.22, 81.11, 310.33°)
OKLaboklab(45.65% 0.0885 -0.177)
OKLCHoklch(45.65% 0.198 296.6)
XYZxyz(14.7948, 8.1146, 44.4939)
Luminance0.0811 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662EB5 #7DB52E
analogous
#2E3AB5 #662EB5 #AA2EB5
triadic
#662EB5 #B5662E #2EB566
tetradic
#662EB5 #B52E3A #7DB52E #2EB5AA
square
#662EB5 #B52E3A #7DB52E #2EB5AA
split-complementary
#662EB5 #B5AA2E #3AB52E
monochromatic
#2F1553 #4B2284 #662EB5 #854ED2 #A77FDE

Accessibility & contrast

On white

8.01
#662EB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #662EB5
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662EB5#FFFFFF#000000##FFFFFF
##662EB51.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #662eb5;
/* rgb */ color: rgb(102, 46, 181);
/* oklch */ color: oklch(45.7% 0.198 296.6);
Tailwind
colors: {
  custom: {
    50: '#996ccc',
    500: '#662eb5',
    950: '#000000',
  },
}
SCSS
$custom: #662eb5;
$custom-light: #996ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#662eb5",
  "rgb": {
    "r": 102,
    "g": 46,
    "b": 181
  },
  "hsl": {
    "h": 264.889,
    "s": 59.471,
    "l": 44.51
  },
  "oklch": {
    "l": 0.45652,
    "c": 0.19785,
    "h": 296.6
  },
  "luminance": 0.08115
}

Semantic roles & 50–950 ramp

primary
#662EB5
secondary
#A6C778
accent
#E345A1
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0F0713
muted
#7E7A82

Preview Lab

Preview with #662EB5

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

Preview Lab → · Contrast checker → · Palette generator →

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