#662BB3#662BB3

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

Color values

HEX#662BB3
RGBrgb(102, 43, 179)
HSLhsl(266, 61%, 44%)
HSVhsv(266, 76%, 70%)
CMYKcmyk(43%, 76%, 0%, 29.8%)
CIE-LABlab(33.58, 53.33, -61.69)
CIE-LCHlch(33.58, 81.55, 310.84°)
OKLaboklab(45.15% 0.0916 -0.1766)
OKLCHoklch(45.15% 0.199 297.4)
XYZxyz(14.4779, 7.8069, 43.3832)
Luminance0.0781 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662BB3 #78B32B
analogous
#2B34B3 #662BB3 #AA2BB3
triadic
#662BB3 #B3662B #2BB366
tetradic
#662BB3 #B32B34 #78B32B #2BB3AA
square
#662BB3 #B32B34 #78B32B #2BB3AA
split-complementary
#662BB3 #B3AA2B #34B32B
monochromatic
#2E1350 #4A1F82 #662BB3 #8448D3 #A579DF

Accessibility & contrast

On white

8.20
#662BB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#662BB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662BB3
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662BB3#FFFFFF#000000##FFFFFF
##662BB31.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB7
Deuteranopia (green-blind)
#004DB0
Tritanopia (blue-blind)
#524F6D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #662bb3;
/* rgb */ color: rgb(102, 43, 179);
/* oklch */ color: oklch(45.1% 0.199 297.4);
Tailwind
colors: {
  custom: {
    50: '#996bcb',
    500: '#662bb3',
    950: '#000000',
  },
}
SCSS
$custom: #662bb3;
$custom-light: #996bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#662bb3",
  "rgb": {
    "r": 102,
    "g": 43,
    "b": 179
  },
  "hsl": {
    "h": 266.029,
    "s": 61.261,
    "l": 43.529
  },
  "oklch": {
    "l": 0.45148,
    "c": 0.19888,
    "h": 297.4
  },
  "luminance": 0.07807
}

Semantic roles & 50–950 ramp

primary
#662BB3
secondary
#A2C773
accent
#E4439F
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0F0713
muted
#7E7A82

Preview Lab

Preview with #662BB3

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

Preview Lab → · Contrast checker → · Palette generator →

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