#662DBB#662DBB

#662DBB is a mid, highly saturated violet. Relative luminance 0.083; OKLCH L 46.1% C 0.205 H 295.3°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#662DBB
RGBrgb(102, 45, 187)
HSLhsl(264, 61%, 45%)
HSVhsv(264, 76%, 73%)
CMYKcmyk(45.5%, 75.9%, 0%, 26.7%)
CIE-LABlab(34.58, 54.49, -64.79)
CIE-LCHlch(34.58, 84.66, 310.06°)
OKLaboklab(46.06% 0.0878 -0.1857)
OKLCHoklch(46.06% 0.205 295.3)
XYZxyz(15.3851, 8.2890, 47.7934)
Luminance0.0829 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662DBB #82BB2D
analogous
#2D3BBB #662DBB #AD2DBB
triadic
#662DBB #BB662D #2DBB66
tetradic
#662DBB #BB2D3B #82BB2D #2DBBAD
square
#662DBB #BB2D3B #82BB2D #2DBBAD
split-complementary
#662DBB #BBAD2D #3BBB2D
monochromatic
#301558 #4B218A #662DBB #8650D5 #A882E1

Accessibility & contrast

On white

7.90
#662DBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#662DBB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662DBB
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662DBB#FFFFFF#000000##FFFFFF
##662DBB1.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BF
Deuteranopia (green-blind)
#004FB8
Tritanopia (blue-blind)
#4E5372
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #662dbb;
/* rgb */ color: rgb(102, 45, 187);
/* oklch */ color: oklch(46.1% 0.205 295.3);
Tailwind
colors: {
  custom: {
    50: '#9a6cd1',
    500: '#662dbb',
    950: '#000000',
  },
}
SCSS
$custom: #662dbb;
$custom-light: #9a6cd1;
$custom-dark: #000000;
JSON
{
  "hex": "#662dbb",
  "rgb": {
    "r": 102,
    "g": 45,
    "b": 187
  },
  "hsl": {
    "h": 264.085,
    "s": 61.207,
    "l": 45.49
  },
  "oklch": {
    "l": 0.46062,
    "c": 0.20539,
    "h": 295.3
  },
  "luminance": 0.08289
}

Semantic roles & 50–950 ramp

primary
#662DBB
secondary
#AACA7A
accent
#E443A4
background
#FAF6FC
surface
#F3ECF9
border
#CDC7D2
text
#0F0714
muted
#7F7A82

Preview Lab

Preview with #662DBB

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

Preview Lab → · Contrast checker → · Palette generator →

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