#662E92#662E92

#662E92 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 42.8% C 0.159 H 306.5°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#662E92
RGBrgb(102, 46, 146)
HSLhsl(274, 52%, 38%)
HSVhsv(274, 68%, 57%)
CMYKcmyk(30.1%, 68.5%, 0%, 42.7%)
CIE-LABlab(31.47, 43.70, -45.18)
CIE-LCHlch(31.47, 62.86, 314.05°)
OKLaboklab(42.84% 0.0948 -0.128)
OKLCHoklch(42.84% 0.159 306.5)
XYZxyz(11.6437, 6.8542, 27.8982)
Luminance0.0685 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662E92 #5A922E
analogous
#342E92 #662E92 #922E8C
triadic
#662E92 #92662E #2E9266
tetradic
#662E92 #92342E #5A922E #2E8C92
square
#662E92 #92342E #5A922E #2E8C92
split-complementary
#662E92 #8C922E #2E9234
monochromatic
#251135 #451F63 #662E92 #873DC1 #A36AD0

Accessibility & contrast

On white

8.86
#662E92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#662E92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662E92
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662E92#FFFFFF#000000##FFFFFF
##662E921.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004895
Deuteranopia (green-blind)
#144A90
Tritanopia (blue-blind)
#5F445C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #662e92;
/* rgb */ color: rgb(102, 46, 146);
/* oklch */ color: oklch(42.8% 0.159 306.5);
Tailwind
colors: {
  custom: {
    50: '#956bb3',
    500: '#662e92',
    950: '#000000',
  },
}
SCSS
$custom: #662e92;
$custom-light: #956bb3;
$custom-dark: #000000;
JSON
{
  "hex": "#662e92",
  "rgb": {
    "r": 102,
    "g": 46,
    "b": 146
  },
  "hsl": {
    "h": 273.6,
    "s": 52.083,
    "l": 37.647
  },
  "oklch": {
    "l": 0.4284,
    "c": 0.15929,
    "h": 306.5
  },
  "luminance": 0.06854
}

Semantic roles & 50–950 ramp

primary
#662E92
secondary
#89B765
accent
#DC4C8B
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0711
muted
#7E7A80

Preview Lab

Preview with #662E92

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

Preview Lab → · Contrast checker → · Palette generator →

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