#6A1D96#6A1D96

#6A1D96 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.9% C 0.185 H 309.2°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#6A1D96
RGBrgb(106, 29, 150)
HSLhsl(278, 68%, 35%)
HSVhsv(278, 81%, 59%)
CMYKcmyk(29.3%, 80.7%, 0%, 41.2%)
CIE-LABlab(29.78, 52.73, -50.36)
CIE-LCHlch(29.78, 72.92, 316.32°)
OKLaboklab(41.85% 0.1166 -0.143)
OKLCHoklch(41.85% 0.185 309.2)
XYZxyz(11.8871, 6.1451, 29.4082)
Luminance0.0614 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A1D96 #49961D
analogous
#2E1D96 #6A1D96 #961D85
triadic
#6A1D96 #966A1D #1D966A
tetradic
#6A1D96 #962E1D #49961D #1D8596
square
#6A1D96 #962E1D #49961D #1D8596
split-complementary
#6A1D96 #85961D #1D962E
monochromatic
#22092F #461363 #6A1D96 #8E27C9 #AA50DD

Accessibility & contrast

On white

9.42
#6A1D96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#6A1D96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A1D96
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A1D96#FFFFFF#000000##FFFFFF
##6A1D961.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004399
Deuteranopia (green-blind)
#004794
Tritanopia (blue-blind)
#633C5A
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #6a1d96;
/* rgb */ color: rgb(106, 29, 150);
/* oklch */ color: oklch(41.9% 0.185 309.2);
Tailwind
colors: {
  custom: {
    50: '#9963b6',
    500: '#6a1d96',
    950: '#000000',
  },
}
SCSS
$custom: #6a1d96;
$custom-light: #9963b6;
$custom-dark: #000000;
JSON
{
  "hex": "#6a1d96",
  "rgb": {
    "r": 106,
    "g": 29,
    "b": 150
  },
  "hsl": {
    "h": 278.182,
    "s": 67.598,
    "l": 35.098
  },
  "oklch": {
    "l": 0.41854,
    "c": 0.18455,
    "h": 309.2
  },
  "luminance": 0.06145
}

Semantic roles & 50–950 ramp

primary
#6A1D96
secondary
#78C04F
accent
#EA3D7C
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #6A1D96

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

Preview Lab → · Contrast checker → · Palette generator →

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