#662BB5#662BB5

#662BB5 is a mid, highly saturated violet. Relative luminance 0.079; OKLCH L 45.3% C 0.201 H 296.9°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#662BB5
RGBrgb(102, 43, 181)
HSLhsl(266, 62%, 44%)
HSVhsv(266, 76%, 71%)
CMYKcmyk(43.6%, 76.2%, 0%, 29%)
CIE-LABlab(33.75, 53.84, -62.60)
CIE-LCHlch(33.75, 82.57, 310.70°)
OKLaboklab(45.32% 0.091 -0.1792)
OKLCHoklch(45.32% 0.201 296.9)
XYZxyz(14.6817, 7.8884, 44.4562)
Luminance0.0789 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662BB5 #7AB52B
analogous
#2B35B5 #662BB5 #AB2BB5
triadic
#662BB5 #B5662B #2BB566
tetradic
#662BB5 #B52B35 #7AB52B #2BB5AB
square
#662BB5 #B52B35 #7AB52B #2BB5AB
split-complementary
#662BB5 #B5AB2B #35B52B
monochromatic
#2E1452 #4A1F84 #662BB5 #8549D4 #A67BE0

Accessibility & contrast

On white

8.15
#662BB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#662BB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662BB5
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662BB5#FFFFFF#000000##FFFFFF
##662BB51.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B9
Deuteranopia (green-blind)
#004EB2
Tritanopia (blue-blind)
#51506F
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #662bb5;
/* rgb */ color: rgb(102, 43, 181);
/* oklch */ color: oklch(45.3% 0.201 296.9);
Tailwind
colors: {
  custom: {
    50: '#996bcc',
    500: '#662bb5',
    950: '#000000',
  },
}
SCSS
$custom: #662bb5;
$custom-light: #996bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#662bb5",
  "rgb": {
    "r": 102,
    "g": 43,
    "b": 181
  },
  "hsl": {
    "h": 265.652,
    "s": 61.607,
    "l": 43.922
  },
  "oklch": {
    "l": 0.45321,
    "c": 0.20101,
    "h": 296.9
  },
  "luminance": 0.07889
}

Semantic roles & 50–950 ramp

primary
#662BB5
secondary
#A4C874
accent
#E543A0
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0F0713
muted
#7E7A82

Preview Lab

Preview with #662BB5

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

Preview Lab → · Contrast checker → · Palette generator →

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