#662F86#662F86

#662F86 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.1% C 0.144 H 310.8°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#662F86
RGBrgb(102, 47, 134)
HSLhsl(278, 48%, 35%)
HSVhsv(278, 65%, 53%)
CMYKcmyk(23.9%, 64.9%, 0%, 47.5%)
CIE-LABlab(30.83, 40.31, -38.80)
CIE-LCHlch(30.83, 55.95, 316.09°)
OKLaboklab(42.11% 0.0944 -0.1093)
OKLCHoklch(42.11% 0.144 310.8)
XYZxyz(10.7983, 6.5793, 23.2507)
Luminance0.0658 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662F86 #4F862F
analogous
#3A2F86 #662F86 #862F7A
triadic
#662F86 #86662F #2F8666
tetradic
#662F86 #863A2F #4F862F #2F7A86
square
#662F86 #863A2F #4F862F #2F7A86
split-complementary
#662F86 #7A862F #2F863A
monochromatic
#210F2B #441F59 #662F86 #883FB3 #A566C9

Accessibility & contrast

On white

9.07
#662F86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#662F86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##662F86#FFFFFF#000000##FFFFFF
##662F861.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)
#044689
Deuteranopia (green-blind)
#254A84
Tritanopia (blue-blind)
#624056
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #662f86;
/* rgb */ color: rgb(102, 47, 134);
/* oklch */ color: oklch(42.1% 0.144 310.8);
Tailwind
colors: {
  custom: {
    50: '#956baa',
    500: '#662f86',
    950: '#000000',
  },
}
SCSS
$custom: #662f86;
$custom-light: #956baa;
$custom-dark: #000000;
JSON
{
  "hex": "#662f86",
  "rgb": {
    "r": 102,
    "g": 47,
    "b": 134
  },
  "hsl": {
    "h": 277.931,
    "s": 48.066,
    "l": 35.49
  },
  "oklch": {
    "l": 0.42112,
    "c": 0.14446,
    "h": 310.8
  },
  "luminance": 0.06579
}

Semantic roles & 50–950 ramp

primary
#662F86
secondary
#7EB060
accent
#D85082
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #662F86

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

Preview Lab → · Contrast checker → · Palette generator →

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