#6A1D97#6A1D97

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

Color values

HEX#6A1D97
RGBrgb(106, 29, 151)
HSLhsl(278, 68%, 35%)
HSVhsv(278, 81%, 59%)
CMYKcmyk(29.8%, 80.8%, 0%, 40.8%)
CIE-LABlab(29.86, 52.95, -50.84)
CIE-LCHlch(29.86, 73.41, 316.17°)
OKLaboklab(41.94% 0.1164 -0.1444)
OKLCHoklch(41.94% 0.186 308.9)
XYZxyz(11.9680, 6.1775, 29.8341)
Luminance0.0618 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A1D97 #4A971D
analogous
#2D1D97 #6A1D97 #971D87
triadic
#6A1D97 #976A1D #1D976A
tetradic
#6A1D97 #972D1D #4A971D #1D8797
square
#6A1D97 #972D1D #4A971D #1D8797
split-complementary
#6A1D97 #87971D #1D972D
monochromatic
#220930 #461364 #6A1D97 #8E27CA #AA51DE

Accessibility & contrast

On white

9.39
#6A1D97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#6A1D97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A1D97
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A1D97#FFFFFF#000000##FFFFFF
##6A1D971.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439A
Deuteranopia (green-blind)
#004795
Tritanopia (blue-blind)
#633C5A
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #6a1d97;
/* rgb */ color: rgb(106, 29, 151);
/* oklch */ color: oklch(41.9% 0.185 308.9);
Tailwind
colors: {
  custom: {
    50: '#9a63b6',
    500: '#6a1d97',
    950: '#000000',
  },
}
SCSS
$custom: #6a1d97;
$custom-light: #9a63b6;
$custom-dark: #000000;
JSON
{
  "hex": "#6a1d97",
  "rgb": {
    "r": 106,
    "g": 29,
    "b": 151
  },
  "hsl": {
    "h": 277.869,
    "s": 67.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.41935,
    "c": 0.1855,
    "h": 308.9
  },
  "luminance": 0.06177
}

Semantic roles & 50–950 ramp

primary
#6A1D97
secondary
#79C04F
accent
#EB3D7D
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #6A1D97

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

Preview Lab → · Contrast checker → · Palette generator →

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