#662EB7#662EB7

#662EB7 is a mid, highly saturated violet. Relative luminance 0.082; OKLCH L 45.8% C 0.200 H 296.1°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#662EB7
RGBrgb(102, 46, 183)
HSLhsl(265, 60%, 45%)
HSVhsv(265, 75%, 72%)
CMYKcmyk(44.3%, 74.9%, 0%, 28.2%)
CIE-LABlab(34.39, 53.01, -62.74)
CIE-LCHlch(34.39, 82.13, 310.20°)
OKLaboklab(45.82% 0.088 -0.1796)
OKLCHoklch(45.82% 0.2 296.1)
XYZxyz(15.0015, 8.1973, 45.5824)
Luminance0.0820 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662EB7 #7FB72E
analogous
#2E3AB7 #662EB7 #AB2EB7
triadic
#662EB7 #B7662E #2EB766
tetradic
#662EB7 #B72E3A #7FB72E #2EB7AB
square
#662EB7 #B72E3A #7FB72E #2EB7AB
split-complementary
#662EB7 #B7AB2E #3AB72E
monochromatic
#2F1555 #4B2286 #662EB7 #854FD3 #A780DF

Accessibility & contrast

On white

7.96
#662EB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#662EB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662EB7
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662EB7#FFFFFF#000000##FFFFFF
##662EB71.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #662eb7;
/* rgb */ color: rgb(102, 46, 183);
/* oklch */ color: oklch(45.8% 0.200 296.1);
Tailwind
colors: {
  custom: {
    50: '#996cce',
    500: '#662eb7',
    950: '#000000',
  },
}
SCSS
$custom: #662eb7;
$custom-light: #996cce;
$custom-dark: #000000;
JSON
{
  "hex": "#662eb7",
  "rgb": {
    "r": 102,
    "g": 46,
    "b": 183
  },
  "hsl": {
    "h": 264.526,
    "s": 59.825,
    "l": 44.902
  },
  "oklch": {
    "l": 0.45824,
    "c": 0.20002,
    "h": 296.1
  },
  "luminance": 0.08198
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #662EB7

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

Preview Lab → · Contrast checker → · Palette generator →

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