#662897#662897

#662897 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.5% C 0.172 H 305.7°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#662897
RGBrgb(102, 40, 151)
HSLhsl(274, 58%, 37%)
HSVhsv(274, 74%, 59%)
CMYKcmyk(32.5%, 73.5%, 0%, 40.8%)
CIE-LABlab(30.82, 47.77, -49.29)
CIE-LCHlch(30.82, 68.64, 314.10°)
OKLaboklab(42.5% 0.1006 -0.1401)
OKLCHoklch(42.5% 0.172 305.7)
XYZxyz(11.8230, 6.5768, 29.9188)
Luminance0.0658 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662897 #599728
analogous
#2F2897 #662897 #972890
triadic
#662897 #976628 #289766
tetradic
#662897 #972F28 #599728 #289097
square
#662897 #972F28 #599728 #289097
split-complementary
#662897 #909728 #28972F
monochromatic
#250E36 #451B67 #662897 #8735C7 #A364D6

Accessibility & contrast

On white

9.07
#662897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#662897 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662897
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662897#FFFFFF#000000##FFFFFF
##6628971.009.072.329.07
#FFFFFF9.071.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #662897;
/* rgb */ color: rgb(102, 40, 151);
/* oklch */ color: oklch(42.5% 0.172 305.7);
Tailwind
colors: {
  custom: {
    50: '#9668b6',
    500: '#662897',
    950: '#000000',
  },
}
SCSS
$custom: #662897;
$custom-light: #9668b6;
$custom-dark: #000000;
JSON
{
  "hex": "#662897",
  "rgb": {
    "r": 102,
    "g": 40,
    "b": 151
  },
  "hsl": {
    "h": 273.514,
    "s": 58.115,
    "l": 37.451
  },
  "oklch": {
    "l": 0.42495,
    "c": 0.17248,
    "h": 305.7
  },
  "luminance": 0.06577
}

Semantic roles & 50–950 ramp

primary
#662897
secondary
#88BC5F
accent
#E1468B
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #662897

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

Preview Lab → · Contrast checker → · Palette generator →

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