#662E8D#662E8D

#662E8D is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.5% C 0.154 H 308.3°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#662E8D
RGBrgb(102, 46, 141)
HSLhsl(275, 51%, 37%)
HSVhsv(275, 67%, 55%)
CMYKcmyk(27.7%, 67.4%, 0%, 44.7%)
CIE-LABlab(31.12, 42.49, -42.67)
CIE-LCHlch(31.12, 60.22, 314.88°)
OKLaboklab(42.47% 0.0952 -0.1207)
OKLCHoklch(42.47% 0.154 308.3)
XYZxyz(11.2632, 6.7020, 25.8944)
Luminance0.0670 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662E8D #558D2E
analogous
#362E8D #662E8D #8D2E85
triadic
#662E8D #8D662E #2E8D66
tetradic
#662E8D #8D362E #558D2E #2E858D
square
#662E8D #8D362E #558D2E #2E858D
split-complementary
#662E8D #858D2E #2E8D36
monochromatic
#231031 #451F5F #662E8D #873DBB #A468CE

Accessibility & contrast

On white

8.97
#662E8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#662E8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662E8D
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662E8D#FFFFFF#000000##FFFFFF
##662E8D1.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004790
Deuteranopia (green-blind)
#1C4A8B
Tritanopia (blue-blind)
#604259
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #662e8d;
/* rgb */ color: rgb(102, 46, 141);
/* oklch */ color: oklch(42.5% 0.154 308.3);
Tailwind
colors: {
  custom: {
    50: '#956baf',
    500: '#662e8d',
    950: '#000000',
  },
}
SCSS
$custom: #662e8d;
$custom-light: #956baf;
$custom-dark: #000000;
JSON
{
  "hex": "#662e8d",
  "rgb": {
    "r": 102,
    "g": 46,
    "b": 141
  },
  "hsl": {
    "h": 275.368,
    "s": 50.802,
    "l": 36.667
  },
  "oklch": {
    "l": 0.42473,
    "c": 0.15374,
    "h": 308.3
  },
  "luminance": 0.06702
}

Semantic roles & 50–950 ramp

primary
#662E8D
secondary
#84B562
accent
#DA4E87
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0710
muted
#7E7A7F

Preview Lab

Preview with #662E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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