#662E89#662E89

#662E89 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.2% C 0.149 H 309.8°. Best body text is #FFFFFF at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#662E89
RGBrgb(102, 46, 137)
HSLhsl(277, 50%, 36%)
HSVhsv(277, 66%, 54%)
CMYKcmyk(25.5%, 66.4%, 0%, 46.3%)
CIE-LABlab(30.84, 41.54, -40.64)
CIE-LCHlch(30.84, 58.11, 315.62°)
OKLaboklab(42.19% 0.0955 -0.1147)
OKLCHoklch(42.19% 0.149 309.8)
XYZxyz(10.9710, 6.5851, 24.3552)
Luminance0.0659 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662E89 #51892E
analogous
#382E89 #662E89 #892E7E
triadic
#662E89 #89662E #2E8966
tetradic
#662E89 #89382E #51892E #2E7E89
square
#662E89 #89382E #51892E #2E7E89
split-complementary
#662E89 #7E892E #2E8938
monochromatic
#220F2D #441F5B #662E89 #883DB7 #A466CC

Accessibility & contrast

On white

9.06
#662E89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #662E89
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662E89#FFFFFF#000000##FFFFFF
##662E891.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468C
Deuteranopia (green-blind)
#214987
Tritanopia (blue-blind)
#614057
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #662e89;
/* rgb */ color: rgb(102, 46, 137);
/* oklch */ color: oklch(42.2% 0.149 309.8);
Tailwind
colors: {
  custom: {
    50: '#956bac',
    500: '#662e89',
    950: '#000000',
  },
}
SCSS
$custom: #662e89;
$custom-light: #956bac;
$custom-dark: #000000;
JSON
{
  "hex": "#662e89",
  "rgb": {
    "r": 102,
    "g": 46,
    "b": 137
  },
  "hsl": {
    "h": 276.923,
    "s": 49.727,
    "l": 35.882
  },
  "oklch": {
    "l": 0.42187,
    "c": 0.14929,
    "h": 309.8
  },
  "luminance": 0.06585
}

Semantic roles & 50–950 ramp

primary
#662E89
secondary
#80B260
accent
#D94F84
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0710
muted
#7E7A7F

Preview Lab

Preview with #662E89

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

Preview Lab → · Contrast checker → · Palette generator →

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