#662F95#662F95

#662F95 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.2% C 0.161 H 305.3°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#662F95
RGBrgb(102, 47, 149)
HSLhsl(272, 52%, 38%)
HSVhsv(272, 68%, 58%)
CMYKcmyk(31.5%, 68.5%, 0%, 41.6%)
CIE-LABlab(31.87, 43.93, -46.38)
CIE-LCHlch(31.87, 63.88, 313.45°)
OKLaboklab(43.19% 0.0933 -0.1316)
OKLCHoklch(43.19% 0.161 305.3)
XYZxyz(11.9196, 7.0278, 29.1565)
Luminance0.0703 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662F95 #5E952F
analogous
#332F95 #662F95 #952F91
triadic
#662F95 #95662F #2F9566
tetradic
#662F95 #95332F #5E952F #2F9195
square
#662F95 #95332F #5E952F #2F9195
split-complementary
#662F95 #91952F #2F9533
monochromatic
#261238 #462066 #662F95 #863FC2 #A36DD1

Accessibility & contrast

On white

8.73
#662F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#662F95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662F95
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662F95#FFFFFF#000000##FFFFFF
##662F951.008.732.418.73
#FFFFFF8.731.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004998
Deuteranopia (green-blind)
#0F4B93
Tritanopia (blue-blind)
#5E465E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #662f95;
/* rgb */ color: rgb(102, 47, 149);
/* oklch */ color: oklch(43.2% 0.161 305.3);
Tailwind
colors: {
  custom: {
    50: '#966cb5',
    500: '#662f95',
    950: '#000000',
  },
}
SCSS
$custom: #662f95;
$custom-light: #966cb5;
$custom-dark: #000000;
JSON
{
  "hex": "#662f95",
  "rgb": {
    "r": 102,
    "g": 47,
    "b": 149
  },
  "hsl": {
    "h": 272.353,
    "s": 52.041,
    "l": 38.431
  },
  "oklch": {
    "l": 0.43194,
    "c": 0.16127,
    "h": 305.3
  },
  "luminance": 0.07028
}

Semantic roles & 50–950 ramp

primary
#662F95
secondary
#8DB867
accent
#DB4C8E
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0711
muted
#7E7A80

Preview Lab

Preview with #662F95

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

Preview Lab → · Contrast checker → · Palette generator →

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