#6A1981#6A1981

#6A1981 is a dark, vivid purple. Relative luminance 0.053; OKLCH L 39.9% C 0.169 H 317.3°. Best body text is #FFFFFF at 10.15:1 contrast (WCAG AA passes).

Color values

HEX#6A1981
RGBrgb(106, 25, 129)
HSLhsl(287, 68%, 30%)
HSVhsv(287, 81%, 51%)
CMYKcmyk(17.8%, 80.6%, 0%, 49.4%)
CIE-LABlab(27.70, 49.68, -40.68)
CIE-LCHlch(27.70, 64.21, 320.68°)
OKLaboklab(39.89% 0.1243 -0.1146)
OKLCHoklch(39.89% 0.169 317.3)
XYZxyz(10.2534, 5.3449, 21.2562)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A1981 #308119
analogous
#361981 #6A1981 #811964
triadic
#6A1981 #816A19 #19816A
tetradic
#6A1981 #813619 #308119 #196481
square
#6A1981 #813619 #308119 #196481
split-complementary
#6A1981 #648119 #198136
monochromatic
#16051A #400F4E #6A1981 #9423B4 #B63BD9

Accessibility & contrast

On white

10.15
#6A1981 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6A1981
10.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A1981#FFFFFF#000000##FFFFFF
##6A19811.0010.152.0710.15
#FFFFFF10.151.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D84
Deuteranopia (green-blind)
#1B447F
Tritanopia (blue-blind)
#69314D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #6a1981;
/* rgb */ color: rgb(106, 25, 129);
/* oklch */ color: oklch(39.9% 0.169 317.3);
Tailwind
colors: {
  custom: {
    50: '#9860a6',
    500: '#6a1981',
    950: '#000000',
  },
}
SCSS
$custom: #6a1981;
$custom-light: #9860a6;
$custom-dark: #000000;
JSON
{
  "hex": "#6a1981",
  "rgb": {
    "r": 106,
    "g": 25,
    "b": 129
  },
  "hsl": {
    "h": 286.731,
    "s": 67.532,
    "l": 30.196
  },
  "oklch": {
    "l": 0.39889,
    "c": 0.16907,
    "h": 317.3
  },
  "luminance": 0.05344
}

Semantic roles & 50–950 ramp

primary
#6A1981
secondary
#5AB541
accent
#EA3D64
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E050F
muted
#7E7A7F

Preview Lab

Preview with #6A1981

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

Preview Lab → · Contrast checker → · Palette generator →

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