#6A1872#6A1872

#6A1872 is a dark, vivid purple. Relative luminance 0.049; OKLCH L 38.7% C 0.157 H 324.0°. Best body text is #FFFFFF at 10.57:1 contrast (WCAG AA passes).

Color values

HEX#6A1872
RGBrgb(106, 24, 114)
HSLhsl(295, 65%, 27%)
HSVhsv(295, 79%, 45%)
CMYKcmyk(7%, 78.9%, 0%, 55.3%)
CIE-LABlab(26.54, 47.09, -33.02)
CIE-LCHlch(26.54, 57.51, 324.96°)
OKLaboklab(38.74% 0.127 -0.0921)
OKLCHoklch(38.74% 0.157 324)
XYZxyz(9.3075, 4.9329, 16.3782)
Luminance0.0493 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A1872 #207218
analogous
#3D1872 #6A1872 #72184D
triadic
#6A1872 #726A18 #18726A
tetradic
#6A1872 #723D18 #207218 #184D72
square
#6A1872 #723D18 #207218 #184D72
split-complementary
#6A1872 #4D7218 #18723D
monochromatic
#180519 #3B0D3F #6A1872 #9923A5 #C531D4

Accessibility & contrast

On white

10.57
#6A1872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#6A1872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A1872
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A1872#FFFFFF#000000##FFFFFF
##6A18721.0010.571.9910.57
#FFFFFF10.571.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003974
Deuteranopia (green-blind)
#294270
Tritanopia (blue-blind)
#6C2944
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #6a1872;
/* rgb */ color: rgb(106, 24, 114);
/* oklch */ color: oklch(38.7% 0.157 324.0);
Tailwind
colors: {
  custom: {
    50: '#985f9b',
    500: '#6a1872',
    950: '#000000',
  },
}
SCSS
$custom: #6a1872;
$custom-light: #985f9b;
$custom-dark: #000000;
JSON
{
  "hex": "#6a1872",
  "rgb": {
    "r": 106,
    "g": 24,
    "b": 114
  },
  "hsl": {
    "h": 294.667,
    "s": 65.217,
    "l": 27.059
  },
  "oklch": {
    "l": 0.38743,
    "c": 0.15687,
    "h": 324
  },
  "luminance": 0.04932
}

Semantic roles & 50–950 ramp

primary
#6A1872
secondary
#48A73E
accent
#E8404F
background
#F9F5F9
surface
#F2EAF2
border
#CCC6CC
text
#0E050E
muted
#7E797E

Preview Lab

Preview with #6A1872

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

Preview Lab → · Contrast checker → · Palette generator →

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