#662F91#662F91

#662F91 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 42.9% C 0.157 H 306.7°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#662F91
RGBrgb(102, 47, 145)
HSLhsl(274, 51%, 38%)
HSVhsv(274, 68%, 57%)
CMYKcmyk(29.7%, 67.6%, 0%, 43.1%)
CIE-LABlab(31.58, 42.95, -44.39)
CIE-LCHlch(31.58, 61.77, 314.06°)
OKLaboklab(42.9% 0.0937 -0.1257)
OKLCHoklch(42.9% 0.157 306.7)
XYZxyz(11.6058, 6.9023, 27.5034)
Luminance0.0690 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662F91 #5A912F
analogous
#352F91 #662F91 #912F8B
triadic
#662F91 #91662F #2F9166
tetradic
#662F91 #91352F #5A912F #2F8B91
square
#662F91 #91352F #5A912F #2F8B91
split-complementary
#662F91 #8B912F #2F9135
monochromatic
#251135 #452063 #662F91 #873EBF #A36BCF

Accessibility & contrast

On white

8.82
#662F91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#662F91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662F91
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662F91#FFFFFF#000000##FFFFFF
##662F911.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004894
Deuteranopia (green-blind)
#174B8F
Tritanopia (blue-blind)
#5F445C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #662f91;
/* rgb */ color: rgb(102, 47, 145);
/* oklch */ color: oklch(42.9% 0.157 306.7);
Tailwind
colors: {
  custom: {
    50: '#956bb2',
    500: '#662f91',
    950: '#000000',
  },
}
SCSS
$custom: #662f91;
$custom-light: #956bb2;
$custom-dark: #000000;
JSON
{
  "hex": "#662f91",
  "rgb": {
    "r": 102,
    "g": 47,
    "b": 145
  },
  "hsl": {
    "h": 273.673,
    "s": 51.042,
    "l": 37.647
  },
  "oklch": {
    "l": 0.42897,
    "c": 0.15679,
    "h": 306.7
  },
  "luminance": 0.06902
}

Semantic roles & 50–950 ramp

primary
#662F91
secondary
#89B665
accent
#DB4D8B
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0711
muted
#7E7A80

Preview Lab

Preview with #662F91

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

Preview Lab → · Contrast checker → · Palette generator →

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