#662E86#662E86

#662E86 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.0% C 0.146 H 311.0°. Best body text is #FFFFFF at 9.13:1 contrast (WCAG AA passes).

Color values

HEX#662E86
RGBrgb(102, 46, 134)
HSLhsl(278, 49%, 35%)
HSVhsv(278, 66%, 53%)
CMYKcmyk(23.9%, 65.7%, 0%, 47.5%)
CIE-LABlab(30.64, 40.83, -39.10)
CIE-LCHlch(30.64, 56.54, 316.24°)
OKLaboklab(41.98% 0.0957 -0.1102)
OKLCHoklch(41.98% 0.146 311)
XYZxyz(10.7588, 6.5002, 23.2375)
Luminance0.0650 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662E86 #4E862E
analogous
#3A2E86 #662E86 #862E7A
triadic
#662E86 #86662E #2E8666
tetradic
#662E86 #863A2E #4E862E #2E7A86
square
#662E86 #863A2E #4E862E #2E7A86
split-complementary
#662E86 #7A862E #2E863A
monochromatic
#210F2B #431E58 #662E86 #893EB4 #A564CA

Accessibility & contrast

On white

9.13
#662E86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#662E86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662E86
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662E86#FFFFFF#000000##FFFFFF
##662E861.009.132.309.13
#FFFFFF9.131.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004589
Deuteranopia (green-blind)
#244984
Tritanopia (blue-blind)
#623F56
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #662e86;
/* rgb */ color: rgb(102, 46, 134);
/* oklch */ color: oklch(42.0% 0.146 311.0);
Tailwind
colors: {
  custom: {
    50: '#956baa',
    500: '#662e86',
    950: '#000000',
  },
}
SCSS
$custom: #662e86;
$custom-light: #956baa;
$custom-dark: #000000;
JSON
{
  "hex": "#662e86",
  "rgb": {
    "r": 102,
    "g": 46,
    "b": 134
  },
  "hsl": {
    "h": 278.182,
    "s": 48.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.41976,
    "c": 0.14596,
    "h": 311
  },
  "luminance": 0.065
}

Semantic roles & 50–950 ramp

primary
#662E86
secondary
#7DB15F
accent
#D84F81
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0710
muted
#7E7A7F

Preview Lab

Preview with #662E86

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

Preview Lab → · Contrast checker → · Palette generator →

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