#662BB8#662BB8

#662BB8 is a mid, highly saturated violet. Relative luminance 0.080; OKLCH L 45.6% C 0.204 H 296.2°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#662BB8
RGBrgb(102, 43, 184)
HSLhsl(265, 62%, 45%)
HSVhsv(265, 77%, 72%)
CMYKcmyk(44.6%, 76.6%, 0%, 27.8%)
CIE-LABlab(34.01, 54.60, -63.95)
CIE-LCHlch(34.01, 84.09, 310.49°)
OKLaboklab(45.58% 0.0902 -0.1832)
OKLCHoklch(45.58% 0.204 296.2)
XYZxyz(14.9928, 8.0129, 46.0948)
Luminance0.0801 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662BB8 #7DB82B
analogous
#2B37B8 #662BB8 #AD2BB8
triadic
#662BB8 #B8662B #2BB866
tetradic
#662BB8 #B82B37 #7DB82B #2BB8AD
square
#662BB8 #B82B37 #7DB82B #2BB8AD
split-complementary
#662BB8 #B8AD2B #37B82B
monochromatic
#2F1455 #4B1F86 #662BB8 #854BD5 #A77DE1

Accessibility & contrast

On white

8.07
#662BB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#662BB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662BB8
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662BB8#FFFFFF#000000##FFFFFF
##662BB81.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BC
Deuteranopia (green-blind)
#004EB5
Tritanopia (blue-blind)
#505170
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #662bb8;
/* rgb */ color: rgb(102, 43, 184);
/* oklch */ color: oklch(45.6% 0.204 296.2);
Tailwind
colors: {
  custom: {
    50: '#996bce',
    500: '#662bb8',
    950: '#000000',
  },
}
SCSS
$custom: #662bb8;
$custom-light: #996bce;
$custom-dark: #000000;
JSON
{
  "hex": "#662bb8",
  "rgb": {
    "r": 102,
    "g": 43,
    "b": 184
  },
  "hsl": {
    "h": 265.106,
    "s": 62.115,
    "l": 44.51
  },
  "oklch": {
    "l": 0.45584,
    "c": 0.20421,
    "h": 296.2
  },
  "luminance": 0.08013
}

Semantic roles & 50–950 ramp

primary
#662BB8
secondary
#A6C976
accent
#E543A1
background
#FAF6FC
surface
#F3ECF9
border
#CDC7D2
text
#0F0714
muted
#7F7A82

Preview Lab

Preview with #662BB8

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

Preview Lab → · Contrast checker → · Palette generator →

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