#6A2172#6A2172

#6A2172 is a dark, vivid purple. Relative luminance 0.054; OKLCH L 39.6% C 0.146 H 323.6°. Best body text is #FFFFFF at 10.13:1 contrast (WCAG AA passes).

Color values

HEX#6A2172
RGBrgb(106, 33, 114)
HSLhsl(294, 55%, 29%)
HSVhsv(294, 71%, 45%)
CMYKcmyk(7%, 71.1%, 0%, 55.3%)
CIE-LABlab(27.76, 43.64, -31.08)
CIE-LCHlch(27.76, 53.57, 324.54°)
OKLaboklab(39.61% 0.1175 -0.0865)
OKLCHoklch(39.61% 0.146 323.6)
XYZxyz(9.5247, 5.3673, 16.4506)
Luminance0.0537 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A2172 #297221
analogous
#422172 #6A2172 #722152
triadic
#6A2172 #726A21 #21726A
tetradic
#6A2172 #724221 #297221 #215272
square
#6A2172 #724221 #297221 #215272
split-complementary
#6A2172 #527221 #217242
monochromatic
#160718 #3E1343 #6A2172 #962FA1 #BC44C9

Accessibility & contrast

On white

10.13
#6A2172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#6A2172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A2172
10.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A2172#FFFFFF#000000##FFFFFF
##6A21721.0010.132.0710.13
#FFFFFF10.131.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B3C74
Deuteranopia (green-blind)
#2E4470
Tritanopia (blue-blind)
#6C2E47
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #6a2172;
/* rgb */ color: rgb(106, 33, 114);
/* oklch */ color: oklch(39.6% 0.146 323.6);
Tailwind
colors: {
  custom: {
    50: '#97639b',
    500: '#6a2172',
    950: '#000000',
  },
}
SCSS
$custom: #6a2172;
$custom-light: #97639b;
$custom-dark: #000000;
JSON
{
  "hex": "#6a2172",
  "rgb": {
    "r": 106,
    "g": 33,
    "b": 114
  },
  "hsl": {
    "h": 294.074,
    "s": 55.102,
    "l": 28.824
  },
  "oklch": {
    "l": 0.3961,
    "c": 0.14593,
    "h": 323.6
  },
  "luminance": 0.05367
}

Semantic roles & 50–950 ramp

primary
#6A2172
secondary
#52A549
accent
#DE4958
background
#F9F6F9
surface
#F2EBF2
border
#CCC6CC
text
#0E060E
muted
#7E7A7E

Preview Lab

Preview with #6A2172

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

Preview Lab → · Contrast checker → · Palette generator →

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