#662997#662997

#662997 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.6% C 0.171 H 305.5°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#662997
RGBrgb(102, 41, 151)
HSLhsl(273, 57%, 38%)
HSVhsv(273, 73%, 59%)
CMYKcmyk(32.5%, 72.8%, 0%, 40.8%)
CIE-LABlab(30.98, 47.31, -49.03)
CIE-LCHlch(30.98, 68.14, 313.98°)
OKLaboklab(42.61% 0.0996 -0.1393)
OKLCHoklch(42.61% 0.171 305.5)
XYZxyz(11.8571, 6.6451, 29.9301)
Luminance0.0664 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662997 #5A9729
analogous
#2F2997 #662997 #972991
triadic
#662997 #976629 #299766
tetradic
#662997 #972F29 #5A9729 #299197
square
#662997 #972F29 #5A9729 #299197
split-complementary
#662997 #919729 #29972F
monochromatic
#250F37 #451C67 #662997 #8736C7 #A365D5

Accessibility & contrast

On white

9.02
#662997 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#662997 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662997
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662997#FFFFFF#000000##FFFFFF
##6629971.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479A
Deuteranopia (green-blind)
#004995
Tritanopia (blue-blind)
#5D435D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #662997;
/* rgb */ color: rgb(102, 41, 151);
/* oklch */ color: oklch(42.6% 0.171 305.5);
Tailwind
colors: {
  custom: {
    50: '#9668b6',
    500: '#662997',
    950: '#000000',
  },
}
SCSS
$custom: #662997;
$custom-light: #9668b6;
$custom-dark: #000000;
JSON
{
  "hex": "#662997",
  "rgb": {
    "r": 102,
    "g": 41,
    "b": 151
  },
  "hsl": {
    "h": 273.273,
    "s": 57.292,
    "l": 37.647
  },
  "oklch": {
    "l": 0.42609,
    "c": 0.17126,
    "h": 305.5
  },
  "luminance": 0.06645
}

Semantic roles & 50–950 ramp

primary
#662997
secondary
#89BB61
accent
#E1478C
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #662997

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

Preview Lab → · Contrast checker → · Palette generator →

#662997 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva