#662DB0#662DB0

#662DB0 is a mid, vivid violet. Relative luminance 0.078; OKLCH L 45.1% C 0.194 H 297.9°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#662DB0
RGBrgb(102, 45, 176)
HSLhsl(266, 59%, 43%)
HSVhsv(266, 74%, 69%)
CMYKcmyk(42%, 74.4%, 0%, 31%)
CIE-LABlab(33.64, 51.67, -59.80)
CIE-LCHlch(33.64, 79.04, 310.83°)
OKLaboklab(45.11% 0.0905 -0.171)
OKLCHoklch(45.11% 0.194 297.9)
XYZxyz(14.2523, 7.8359, 41.8275)
Luminance0.0784 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662DB0 #77B02D
analogous
#2D35B0 #662DB0 #A72DB0
triadic
#662DB0 #B0662D #2DB066
tetradic
#662DB0 #B02D35 #77B02D #2DB0A7
square
#662DB0 #B02D35 #77B02D #2DB0A7
split-complementary
#662DB0 #B0A72D #35B02D
monochromatic
#2E144F #4A217F #662DB0 #844AD1 #A57ADD

Accessibility & contrast

On white

8.18
#662DB0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#662DB0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662DB0
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662DB0#FFFFFF#000000##FFFFFF
##662DB01.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB4
Deuteranopia (green-blind)
#004EAD
Tritanopia (blue-blind)
#534F6C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #662db0;
/* rgb */ color: rgb(102, 45, 176);
/* oklch */ color: oklch(45.1% 0.194 297.9);
Tailwind
colors: {
  custom: {
    50: '#986cc9',
    500: '#662db0',
    950: '#000000',
  },
}
SCSS
$custom: #662db0;
$custom-light: #986cc9;
$custom-dark: #000000;
JSON
{
  "hex": "#662db0",
  "rgb": {
    "r": 102,
    "g": 45,
    "b": 176
  },
  "hsl": {
    "h": 266.107,
    "s": 59.276,
    "l": 43.333
  },
  "oklch": {
    "l": 0.45112,
    "c": 0.19351,
    "h": 297.9
  },
  "luminance": 0.07836
}

Semantic roles & 50–950 ramp

primary
#662DB0
secondary
#A2C573
accent
#E2459E
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0F0713
muted
#7E7A82

Preview Lab

Preview with #662DB0

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

Preview Lab → · Contrast checker → · Palette generator →

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