#662F74#662F74

#662F74 is a dark, vivid purple. Relative luminance 0.061; OKLCH L 40.9% C 0.125 H 319.1°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#662F74
RGBrgb(102, 47, 116)
HSLhsl(288, 42%, 32%)
HSVhsv(288, 59%, 45%)
CMYKcmyk(12.1%, 59.5%, 0%, 54.5%)
CIE-LABlab(29.71, 36.21, -29.29)
CIE-LCHlch(29.71, 46.57, 321.03°)
OKLaboklab(40.94% 0.0941 -0.0815)
OKLCHoklch(40.94% 0.125 319.1)
XYZxyz(9.6480, 6.1192, 17.1925)
Luminance0.0612 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662F74 #3D742F
analogous
#442F74 #662F74 #742F60
triadic
#662F74 #74662F #2F7466
tetradic
#662F74 #74442F #3D742F #2F6074
square
#662F74 #74442F #3D742F #2F6074
split-complementary
#662F74 #60742F #2F7444
monochromatic
#190C1D #401D48 #662F74 #8C41A0 #AB5FBE

Accessibility & contrast

On white

9.44
#662F74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#662F74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662F74
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662F74#FFFFFF#000000##FFFFFF
##662F741.009.442.229.44
#FFFFFF9.441.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204276
Deuteranopia (green-blind)
#334872
Tritanopia (blue-blind)
#663A4D
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #662f74;
/* rgb */ color: rgb(102, 47, 116);
/* oklch */ color: oklch(40.9% 0.125 319.1);
Tailwind
colors: {
  custom: {
    50: '#946b9c',
    500: '#662f74',
    950: '#000000',
  },
}
SCSS
$custom: #662f74;
$custom-light: #946b9c;
$custom-dark: #000000;
JSON
{
  "hex": "#662f74",
  "rgb": {
    "r": 102,
    "g": 47,
    "b": 116
  },
  "hsl": {
    "h": 287.826,
    "s": 42.331,
    "l": 31.961
  },
  "oklch": {
    "l": 0.40938,
    "c": 0.12452,
    "h": 319.1
  },
  "luminance": 0.06119
}

Semantic roles & 50–950 ramp

primary
#662F74
secondary
#69A55A
accent
#D2566F
background
#F9F6F9
surface
#F2EBF2
border
#CCC6CC
text
#0D070E
muted
#7E7A7E

Preview Lab

Preview with #662F74

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

Preview Lab → · Contrast checker → · Palette generator →

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