#662EB1#662EB1

#662EB1 is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.3% C 0.193 H 297.5°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#662EB1
RGBrgb(102, 46, 177)
HSLhsl(266, 59%, 44%)
HSVhsv(266, 74%, 69%)
CMYKcmyk(42.4%, 74%, 0%, 30.6%)
CIE-LABlab(33.88, 51.47, -60.00)
CIE-LCHlch(33.88, 79.05, 310.62°)
OKLaboklab(45.31% 0.0894 -0.1716)
OKLCHoklch(45.31% 0.193 297.5)
XYZxyz(14.3902, 7.9528, 42.3633)
Luminance0.0795 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662EB1 #79B12E
analogous
#2E37B1 #662EB1 #A72EB1
triadic
#662EB1 #B1662E #2EB166
tetradic
#662EB1 #B12E37 #79B12E #2EB1A7
square
#662EB1 #B12E37 #79B12E #2EB1A7
split-complementary
#662EB1 #B1A72E #37B12E
monochromatic
#2E1550 #4A2180 #662EB1 #844CD0 #A67CDD

Accessibility & contrast

On white

8.11
#662EB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #662EB1
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662EB1#FFFFFF#000000##FFFFFF
##662EB11.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B5
Deuteranopia (green-blind)
#004EAE
Tritanopia (blue-blind)
#53506D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #662eb1;
/* rgb */ color: rgb(102, 46, 177);
/* oklch */ color: oklch(45.3% 0.193 297.5);
Tailwind
colors: {
  custom: {
    50: '#986cc9',
    500: '#662eb1',
    950: '#000000',
  },
}
SCSS
$custom: #662eb1;
$custom-light: #986cc9;
$custom-dark: #000000;
JSON
{
  "hex": "#662eb1",
  "rgb": {
    "r": 102,
    "g": 46,
    "b": 177
  },
  "hsl": {
    "h": 265.649,
    "s": 58.744,
    "l": 43.725
  },
  "oklch": {
    "l": 0.45311,
    "c": 0.19349,
    "h": 297.5
  },
  "luminance": 0.07953
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #662EB1

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

Preview Lab → · Contrast checker → · Palette generator →

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