#6A31AF#6A31AF

#6A31AF is a mid, vivid violet. Relative luminance 0.084; OKLCH L 46.0% C 0.188 H 299.5°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#6A31AF
RGBrgb(106, 49, 175)
HSLhsl(267, 56%, 44%)
HSVhsv(267, 72%, 69%)
CMYKcmyk(39.4%, 72%, 0%, 31.4%)
CIE-LABlab(34.71, 50.27, -57.44)
CIE-LCHlch(34.71, 76.33, 311.19°)
OKLaboklab(45.96% 0.0928 -0.164)
OKLCHoklch(45.96% 0.188 299.5)
XYZxyz(14.7781, 8.3558, 41.3834)
Luminance0.0836 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A31AF #76AF31
analogous
#3137AF #6A31AF #A931AF
triadic
#6A31AF #AF6A31 #31AF6A
tetradic
#6A31AF #AF3137 #76AF31 #31AFA9
square
#6A31AF #AF3137 #76AF31 #31AFA9
split-complementary
#6A31AF #AFA931 #37AF31
monochromatic
#30164F #4D247F #6A31AF #894FCE #A97FDB

Accessibility & contrast

On white

7.86
#6A31AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#6A31AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A31AF
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A31AF#FFFFFF#000000##FFFFFF
##6A31AF1.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B3
Deuteranopia (green-blind)
#0051AC
Tritanopia (blue-blind)
#5A506D
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #6a31af;
/* rgb */ color: rgb(106, 49, 175);
/* oklch */ color: oklch(46.0% 0.188 299.5);
Tailwind
colors: {
  custom: {
    50: '#9b6ec8',
    500: '#6a31af',
    950: '#000000',
  },
}
SCSS
$custom: #6a31af;
$custom-light: #9b6ec8;
$custom-dark: #000000;
JSON
{
  "hex": "#6a31af",
  "rgb": {
    "r": 106,
    "g": 49,
    "b": 175
  },
  "hsl": {
    "h": 267.143,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.45956,
    "c": 0.18839,
    "h": 299.5
  },
  "luminance": 0.08356
}

Semantic roles & 50–950 ramp

primary
#6A31AF
secondary
#A2C478
accent
#E0489B
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0F0713
muted
#7E7A82

Preview Lab

Preview with #6A31AF

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

Preview Lab → · Contrast checker → · Palette generator →

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