#6A1D8F#6A1D8F

#6A1D8F is a dark, vivid purple. Relative luminance 0.059; OKLCH L 41.3% C 0.178 H 311.6°. Best body text is #FFFFFF at 9.61:1 contrast (WCAG AA passes).

Color values

HEX#6A1D8F
RGBrgb(106, 29, 143)
HSLhsl(281, 66%, 34%)
HSVhsv(281, 80%, 56%)
CMYKcmyk(25.9%, 79.7%, 0%, 43.9%)
CIE-LABlab(29.23, 51.21, -46.94)
CIE-LCHlch(29.23, 69.47, 317.49°)
OKLaboklab(41.3% 0.1182 -0.133)
OKLCHoklch(41.3% 0.178 311.6)
XYZxyz(11.3402, 5.9264, 26.5278)
Luminance0.0593 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A1D8F #428F1D
analogous
#311D8F #6A1D8F #8F1D7B
triadic
#6A1D8F #8F6A1D #1D8F6A
tetradic
#6A1D8F #8F311D #428F1D #1D7B8F
square
#6A1D8F #8F311D #428F1D #1D7B8F
split-complementary
#6A1D8F #7B8F1D #1D8F31
monochromatic
#1F0829 #44135C #6A1D8F #9027C2 #AC4CDB

Accessibility & contrast

On white

9.61
#6A1D8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#6A1D8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A1D8F
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A1D8F#FFFFFF#000000##FFFFFF
##6A1D8F1.009.612.199.61
#FFFFFF9.611.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004192
Deuteranopia (green-blind)
#03468D
Tritanopia (blue-blind)
#653956
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #6a1d8f;
/* rgb */ color: rgb(106, 29, 143);
/* oklch */ color: oklch(41.3% 0.178 311.6);
Tailwind
colors: {
  custom: {
    50: '#9963b1',
    500: '#6a1d8f',
    950: '#000000',
  },
}
SCSS
$custom: #6a1d8f;
$custom-light: #9963b1;
$custom-dark: #000000;
JSON
{
  "hex": "#6a1d8f",
  "rgb": {
    "r": 106,
    "g": 29,
    "b": 143
  },
  "hsl": {
    "h": 280.526,
    "s": 66.279,
    "l": 33.725
  },
  "oklch": {
    "l": 0.41296,
    "c": 0.17793,
    "h": 311.6
  },
  "luminance": 0.05926
}

Semantic roles & 50–950 ramp

primary
#6A1D8F
secondary
#70BD4B
accent
#E93F76
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #6A1D8F

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

Preview Lab → · Contrast checker → · Palette generator →

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