#663271#663271

#663271 is a dark, moderate purple. Relative luminance 0.063; OKLCH L 41.2% C 0.116 H 320.4°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#663271
RGBrgb(102, 50, 113)
HSLhsl(290, 39%, 32%)
HSVhsv(290, 56%, 44%)
CMYKcmyk(9.7%, 55.8%, 0%, 55.7%)
CIE-LABlab(30.15, 33.92, -26.68)
CIE-LCHlch(30.15, 43.16, 321.81°)
OKLaboklab(41.21% 0.0894 -0.074)
OKLCHoklch(41.21% 0.116 320.4)
XYZxyz(9.6004, 6.2986, 16.3296)
Luminance0.0630 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#663271 #3D7132
analogous
#473271 #663271 #71325D
triadic
#663271 #716632 #327166
tetradic
#663271 #714732 #3D7132 #325D71
square
#663271 #714732 #3D7132 #325D71
split-complementary
#663271 #5D7132 #327147
monochromatic
#190C1C #401F47 #663271 #8C459B #AB63BA

Accessibility & contrast

On white

9.29
#663271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#663271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #663271
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##663271#FFFFFF#000000##FFFFFF
##6632711.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#274373
Deuteranopia (green-blind)
#37496F
Tritanopia (blue-blind)
#673B4C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #663271;
/* rgb */ color: rgb(102, 50, 113);
/* oklch */ color: oklch(41.2% 0.116 320.4);
Tailwind
colors: {
  custom: {
    50: '#936c9a',
    500: '#663271',
    950: '#000000',
  },
}
SCSS
$custom: #663271;
$custom-light: #936c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#663271",
  "rgb": {
    "r": 102,
    "g": 50,
    "b": 113
  },
  "hsl": {
    "h": 289.524,
    "s": 38.65,
    "l": 31.961
  },
  "oklch": {
    "l": 0.41208,
    "c": 0.11609,
    "h": 320.4
  },
  "luminance": 0.06298
}

Semantic roles & 50–950 ramp

primary
#663271
secondary
#69A25D
accent
#CF596E
background
#F9F6F9
surface
#F1EBF2
border
#CBC6CC
text
#0D070E
muted
#7E7A7E

Preview Lab

Preview with #663271

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

Preview Lab → · Contrast checker → · Palette generator →

#663271 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva