#662F97#662F97

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

Color values

HEX#662F97
RGBrgb(102, 47, 151)
HSLhsl(272, 53%, 39%)
HSVhsv(272, 69%, 59%)
CMYKcmyk(32.5%, 68.9%, 0%, 40.8%)
CIE-LABlab(32.02, 44.43, -47.36)
CIE-LCHlch(32.02, 64.94, 313.17°)
OKLaboklab(43.35% 0.093 -0.1345)
OKLCHoklch(43.35% 0.164 304.7)
XYZxyz(12.0807, 7.0922, 30.0047)
Luminance0.0709 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662F97 #60972F
analogous
#322F97 #662F97 #972F94
triadic
#662F97 #97662F #2F9766
tetradic
#662F97 #97322F #60972F #2F9497
square
#662F97 #97322F #60972F #2F9497
split-complementary
#662F97 #94972F #2F9732
monochromatic
#27123A #462068 #662F97 #8540C3 #A36ED2

Accessibility & contrast

On white

8.68
#662F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#662F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662F97
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662F97#FFFFFF#000000##FFFFFF
##662F971.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9A
Deuteranopia (green-blind)
#094B95
Tritanopia (blue-blind)
#5D465F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #662f97;
/* rgb */ color: rgb(102, 47, 151);
/* oklch */ color: oklch(43.3% 0.164 304.7);
Tailwind
colors: {
  custom: {
    50: '#966cb6',
    500: '#662f97',
    950: '#000000',
  },
}
SCSS
$custom: #662f97;
$custom-light: #966cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#662f97",
  "rgb": {
    "r": 102,
    "g": 47,
    "b": 151
  },
  "hsl": {
    "h": 271.731,
    "s": 52.525,
    "l": 38.824
  },
  "oklch": {
    "l": 0.43345,
    "c": 0.16351,
    "h": 304.7
  },
  "luminance": 0.07092
}

Semantic roles & 50–950 ramp

primary
#662F97
secondary
#8FB968
accent
#DC4C90
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0711
muted
#7E7A80

Preview Lab

Preview with #662F97

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

Preview Lab → · Contrast checker → · Palette generator →

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