#662CB3#662CB3

#662CB3 is a mid, vivid violet. Relative luminance 0.079; OKLCH L 45.3% C 0.198 H 297.3°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#662CB3
RGBrgb(102, 44, 179)
HSLhsl(266, 61%, 44%)
HSVhsv(266, 75%, 70%)
CMYKcmyk(43%, 75.4%, 0%, 29.8%)
CIE-LABlab(33.73, 52.89, -61.44)
CIE-LCHlch(33.73, 81.07, 310.72°)
OKLaboklab(45.26% 0.0907 -0.1758)
OKLCHoklch(45.26% 0.198 297.3)
XYZxyz(14.5147, 7.8805, 43.3955)
Luminance0.0788 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662CB3 #79B32C
analogous
#2C35B3 #662CB3 #A92CB3
triadic
#662CB3 #B3662C #2CB366
tetradic
#662CB3 #B32C35 #79B32C #2CB3A9
square
#662CB3 #B32C35 #79B32C #2CB3A9
split-complementary
#662CB3 #B3A92C #35B32C
monochromatic
#2E1451 #4A2082 #662CB3 #844AD2 #A67BDF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##662CB3#FFFFFF#000000##FFFFFF
##662CB31.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)
#0050B7
Deuteranopia (green-blind)
#004EB0
Tritanopia (blue-blind)
#52506E
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #662cb3;
/* rgb */ color: rgb(102, 44, 179);
/* oklch */ color: oklch(45.3% 0.198 297.3);
Tailwind
colors: {
  custom: {
    50: '#996bcb',
    500: '#662cb3',
    950: '#000000',
  },
}
SCSS
$custom: #662cb3;
$custom-light: #996bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#662cb3",
  "rgb": {
    "r": 102,
    "g": 44,
    "b": 179
  },
  "hsl": {
    "h": 265.778,
    "s": 60.538,
    "l": 43.725
  },
  "oklch": {
    "l": 0.45257,
    "c": 0.19783,
    "h": 297.3
  },
  "luminance": 0.07881
}

Semantic roles & 50–950 ramp

primary
#662CB3
secondary
#A3C774
accent
#E4449F
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0F0713
muted
#7E7A82

Preview Lab

Preview with #662CB3

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

Preview Lab → · Contrast checker → · Palette generator →

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