#662F96#662F96

#662F96 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.3% C 0.162 H 305.0°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#662F96
RGBrgb(102, 47, 150)
HSLhsl(272, 52%, 39%)
HSVhsv(272, 69%, 59%)
CMYKcmyk(32%, 68.7%, 0%, 41.2%)
CIE-LABlab(31.94, 44.18, -46.87)
CIE-LCHlch(31.94, 64.41, 313.31°)
OKLaboklab(43.27% 0.0931 -0.133)
OKLCHoklch(43.27% 0.162 305)
XYZxyz(11.9998, 7.0599, 29.5788)
Luminance0.0706 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662F96 #5F962F
analogous
#322F96 #662F96 #962F92
triadic
#662F96 #96662F #2F9666
tetradic
#662F96 #96322F #5F962F #2F9296
square
#662F96 #96322F #5F962F #2F9296
split-complementary
#662F96 #92962F #2F9632
monochromatic
#271239 #462067 #662F96 #863FC3 #A36ED2

Accessibility & contrast

On white

8.71
#662F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#662F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662F96
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662F96#FFFFFF#000000##FFFFFF
##662F961.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A99
Deuteranopia (green-blind)
#0C4B94
Tritanopia (blue-blind)
#5D465E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #662f96;
/* rgb */ color: rgb(102, 47, 150);
/* oklch */ color: oklch(43.3% 0.162 305.0);
Tailwind
colors: {
  custom: {
    50: '#966cb6',
    500: '#662f96',
    950: '#000000',
  },
}
SCSS
$custom: #662f96;
$custom-light: #966cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#662f96",
  "rgb": {
    "r": 102,
    "g": 47,
    "b": 150
  },
  "hsl": {
    "h": 272.039,
    "s": 52.284,
    "l": 38.627
  },
  "oklch": {
    "l": 0.43269,
    "c": 0.16239,
    "h": 305
  },
  "luminance": 0.0706
}

Semantic roles & 50–950 ramp

primary
#662F96
secondary
#8EB968
accent
#DC4C8F
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0711
muted
#7E7A80

Preview Lab

Preview with #662F96

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

Preview Lab → · Contrast checker → · Palette generator →

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