#6A5271#6A5271

#6A5271 is a mid, muted purple. Relative luminance 0.103; OKLCH L 47.5% C 0.057 H 318.5°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#6A5271
RGBrgb(106, 82, 113)
HSLhsl(286, 16%, 38%)
HSVhsv(286, 27%, 44%)
CMYKcmyk(6.2%, 27.4%, 0%, 55.7%)
CIE-LABlab(38.36, 16.11, -13.92)
CIE-LCHlch(38.36, 21.29, 319.17°)
OKLaboklab(47.49% 0.0427 -0.0378)
OKLCHoklch(47.49% 0.057 318.5)
XYZxyz(11.9414, 10.2912, 16.9769)
Luminance0.1029 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A5271 #597152
analogous
#5A5271 #6A5271 #715268
triadic
#6A5271 #716A52 #52716A
tetradic
#6A5271 #715A52 #597152 #526871
square
#6A5271 #715A52 #597152 #526871
split-complementary
#6A5271 #687152 #52715A
monochromatic
#271F2A #49384E #6A5271 #8B6C94 #A78FAE

Accessibility & contrast

On white

6.87
#6A5271 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#6A5271 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6A5271
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A5271#FFFFFF#000000##FFFFFF
##6A52711.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E5972
Deuteranopia (green-blind)
#545B70
Tritanopia (blue-blind)
#6A555D
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #6a5271;
/* rgb */ color: rgb(106, 82, 113);
/* oklch */ color: oklch(47.5% 0.057 318.5);
Tailwind
colors: {
  custom: {
    50: '#958299',
    500: '#6a5271',
    950: '#000000',
  },
}
SCSS
$custom: #6a5271;
$custom-light: #958299;
$custom-dark: #000000;
JSON
{
  "hex": "#6a5271",
  "rgb": {
    "r": 106,
    "g": 82,
    "b": 113
  },
  "hsl": {
    "h": 286.452,
    "s": 15.897,
    "l": 38.235
  },
  "oklch": {
    "l": 0.47493,
    "c": 0.05701,
    "h": 318.5
  },
  "luminance": 0.10291
}

Semantic roles & 50–950 ramp

primary
#6A5271
secondary
#899C83
accent
#B96F80
background
#F9F8F9
surface
#F1EFF2
border
#CBCACC
text
#0D0A0E
muted
#7E7C7E

Preview Lab

Preview with #6A5271

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

Preview Lab → · Contrast checker → · Palette generator →

#6A5271 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva