#662F92#662F92

#662F92 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.0% C 0.158 H 306.3°. Best body text is #FFFFFF at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#662F92
RGBrgb(102, 47, 146)
HSLhsl(273, 51%, 38%)
HSVhsv(273, 68%, 57%)
CMYKcmyk(30.1%, 67.8%, 0%, 42.7%)
CIE-LABlab(31.65, 43.20, -44.89)
CIE-LCHlch(31.65, 62.30, 313.90°)
OKLaboklab(42.97% 0.0936 -0.1272)
OKLCHoklch(42.97% 0.158 306.3)
XYZxyz(11.6832, 6.9332, 27.9113)
Luminance0.0693 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662F92 #5B922F
analogous
#342F92 #662F92 #922F8C
triadic
#662F92 #92662F #2F9266
tetradic
#662F92 #92342F #5B922F #2F8C92
square
#662F92 #92342F #5B922F #2F8C92
split-complementary
#662F92 #8C922F #2F9234
monochromatic
#251135 #462064 #662F92 #863EC0 #A36CD0

Accessibility & contrast

On white

8.80
#662F92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#662F92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662F92
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662F92#FFFFFF#000000##FFFFFF
##662F921.008.802.398.80
#FFFFFF8.801.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004995
Deuteranopia (green-blind)
#154B90
Tritanopia (blue-blind)
#5F445C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #662f92;
/* rgb */ color: rgb(102, 47, 146);
/* oklch */ color: oklch(43.0% 0.158 306.3);
Tailwind
colors: {
  custom: {
    50: '#956cb3',
    500: '#662f92',
    950: '#000000',
  },
}
SCSS
$custom: #662f92;
$custom-light: #956cb3;
$custom-dark: #000000;
JSON
{
  "hex": "#662f92",
  "rgb": {
    "r": 102,
    "g": 47,
    "b": 146
  },
  "hsl": {
    "h": 273.333,
    "s": 51.295,
    "l": 37.843
  },
  "oklch": {
    "l": 0.42971,
    "c": 0.15791,
    "h": 306.3
  },
  "luminance": 0.06933
}

Semantic roles & 50–950 ramp

primary
#662F92
secondary
#8AB766
accent
#DB4D8C
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0711
muted
#7E7A80

Preview Lab

Preview with #662F92

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

Preview Lab → · Contrast checker → · Palette generator →

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