#6A31A2#6A31A2

#6A31A2 is a dark, vivid violet. Relative luminance 0.079; OKLCH L 44.9% C 0.174 H 303.1°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#6A31A2
RGBrgb(106, 49, 162)
HSLhsl(270, 54%, 41%)
HSVhsv(270, 70%, 64%)
CMYKcmyk(34.6%, 69.8%, 0%, 36.5%)
CIE-LABlab(33.71, 47.01, -51.27)
CIE-LCHlch(33.71, 69.56, 312.52°)
OKLaboklab(44.93% 0.095 -0.1458)
OKLCHoklch(44.93% 0.174 303.1)
XYZxyz(13.5622, 7.8694, 34.9799)
Luminance0.0787 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A31A2 #69A231
analogous
#3131A2 #6A31A2 #A231A2
triadic
#6A31A2 #A26A31 #31A26A
tetradic
#6A31A2 #A23131 #69A231 #31A2A2
square
#6A31A2 #A23131 #69A231 #31A2A2
split-complementary
#6A31A2 #A2A231 #31A231
monochromatic
#2D1544 #4B2373 #6A31A2 #8948C8 #A777D6

Accessibility & contrast

On white

8.16
#6A31A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#6A31A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A31A2
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A31A2#FFFFFF#000000##FFFFFF
##6A31A21.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA5
Deuteranopia (green-blind)
#004FA0
Tritanopia (blue-blind)
#5F4B66
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #6a31a2;
/* rgb */ color: rgb(106, 49, 162);
/* oklch */ color: oklch(44.9% 0.174 303.1);
Tailwind
colors: {
  custom: {
    50: '#996ebe',
    500: '#6a31a2',
    950: '#000000',
  },
}
SCSS
$custom: #6a31a2;
$custom-light: #996ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#6a31a2",
  "rgb": {
    "r": 106,
    "g": 49,
    "b": 162
  },
  "hsl": {
    "h": 270.265,
    "s": 53.555,
    "l": 41.373
  },
  "oklch": {
    "l": 0.44927,
    "c": 0.17403,
    "h": 303.1
  },
  "luminance": 0.07869
}

Semantic roles & 50–950 ramp

primary
#6A31A2
secondary
#97BE71
accent
#DD4B93
background
#F9F6FB
surface
#F2ECF7
border
#CCC7D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #6A31A2

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

Preview Lab → · Contrast checker → · Palette generator →

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