#662CB0#662CB0

#662CB0 is a mid, vivid violet. Relative luminance 0.078; OKLCH L 45.0% C 0.195 H 298.0°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#662CB0
RGBrgb(102, 44, 176)
HSLhsl(266, 60%, 43%)
HSVhsv(266, 75%, 69%)
CMYKcmyk(42%, 75%, 0%, 31%)
CIE-LABlab(33.48, 52.13, -60.07)
CIE-LCHlch(33.48, 79.53, 310.95°)
OKLaboklab(45% 0.0914 -0.1718)
OKLCHoklch(45% 0.195 298)
XYZxyz(14.2146, 7.7605, 41.8149)
Luminance0.0776 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662CB0 #76B02C
analogous
#2C34B0 #662CB0 #A82CB0
triadic
#662CB0 #B0662C #2CB066
tetradic
#662CB0 #B02C34 #76B02C #2CB0A8
square
#662CB0 #B02C34 #76B02C #2CB0A8
split-complementary
#662CB0 #B0A82C #34B02C
monochromatic
#2D144E #4A207F #662CB0 #8448D1 #A579DD

Accessibility & contrast

On white

8.23
#662CB0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#662CB0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662CB0
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662CB0#FFFFFF#000000##FFFFFF
##662CB01.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #662cb0;
/* rgb */ color: rgb(102, 44, 176);
/* oklch */ color: oklch(45.0% 0.195 298.0);
Tailwind
colors: {
  custom: {
    50: '#986bc9',
    500: '#662cb0',
    950: '#000000',
  },
}
SCSS
$custom: #662cb0;
$custom-light: #986bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#662cb0",
  "rgb": {
    "r": 102,
    "g": 44,
    "b": 176
  },
  "hsl": {
    "h": 266.364,
    "s": 60,
    "l": 43.137
  },
  "oklch": {
    "l": 0.45,
    "c": 0.19461,
    "h": 298
  },
  "luminance": 0.07761
}

Semantic roles & 50–950 ramp

primary
#662CB0
secondary
#A1C672
accent
#E3459E
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0F0713
muted
#7E7A82

Preview Lab

Preview with #662CB0

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

Preview Lab → · Contrast checker → · Palette generator →

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