#662F8D#662F8D

#662F8D is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.6% C 0.152 H 308.1°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#662F8D
RGBrgb(102, 47, 141)
HSLhsl(275, 50%, 37%)
HSVhsv(275, 67%, 55%)
CMYKcmyk(27.7%, 66.7%, 0%, 44.7%)
CIE-LABlab(31.30, 41.98, -42.38)
CIE-LCHlch(31.30, 59.65, 314.73°)
OKLaboklab(42.61% 0.094 -0.1198)
OKLCHoklch(42.61% 0.152 308.1)
XYZxyz(11.3027, 6.7811, 25.9076)
Luminance0.0678 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662F8D #568D2F
analogous
#372F8D #662F8D #8D2F85
triadic
#662F8D #8D662F #2F8D66
tetradic
#662F8D #8D372F #568D2F #2F858D
square
#662F8D #8D372F #568D2F #2F858D
split-complementary
#662F8D #858D2F #2F8D37
monochromatic
#241031 #45205F #662F8D #873EBB #A469CD

Accessibility & contrast

On white

8.91
#662F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#662F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662F8D
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662F8D#FFFFFF#000000##FFFFFF
##662F8D1.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004890
Deuteranopia (green-blind)
#1D4A8B
Tritanopia (blue-blind)
#60435A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #662f8d;
/* rgb */ color: rgb(102, 47, 141);
/* oklch */ color: oklch(42.6% 0.152 308.1);
Tailwind
colors: {
  custom: {
    50: '#956baf',
    500: '#662f8d',
    950: '#000000',
  },
}
SCSS
$custom: #662f8d;
$custom-light: #956baf;
$custom-dark: #000000;
JSON
{
  "hex": "#662f8d",
  "rgb": {
    "r": 102,
    "g": 47,
    "b": 141
  },
  "hsl": {
    "h": 275.106,
    "s": 50,
    "l": 36.863
  },
  "oklch": {
    "l": 0.42606,
    "c": 0.1523,
    "h": 308.1
  },
  "luminance": 0.06781
}

Semantic roles & 50–950 ramp

primary
#662F8D
secondary
#85B464
accent
#DA4E88
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0710
muted
#7E7A7F

Preview Lab

Preview with #662F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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