#6A31B6#6A31B6

#6A31B6 is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.5% C 0.196 H 297.8°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#6A31B6
RGBrgb(106, 49, 182)
HSLhsl(266, 58%, 45%)
HSVhsv(266, 73%, 71%)
CMYKcmyk(41.8%, 73.1%, 0%, 28.6%)
CIE-LABlab(35.28, 52.05, -60.67)
CIE-LCHlch(35.28, 79.94, 310.63°)
OKLaboklab(46.53% 0.0913 -0.1735)
OKLCHoklch(46.53% 0.196 297.8)
XYZxyz(15.4835, 8.6379, 45.0984)
Luminance0.0864 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A31B6 #7DB631
analogous
#313BB6 #6A31B6 #AC31B6
triadic
#6A31B6 #B66A31 #31B66A
tetradic
#6A31B6 #B6313B #7DB631 #31B6AC
square
#6A31B6 #B6313B #7DB631 #31B6AC
split-complementary
#6A31B6 #B6AC31 #3BB631
monochromatic
#321756 #4E2486 #6A31B6 #8953D1 #AA84DE

Accessibility & contrast

On white

7.70
#6A31B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#6A31B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A31B6
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A31B6#FFFFFF#000000##FFFFFF
##6A31B61.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BA
Deuteranopia (green-blind)
#0051B3
Tritanopia (blue-blind)
#575371
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #6a31b6;
/* rgb */ color: rgb(106, 49, 182);
/* oklch */ color: oklch(46.5% 0.196 297.8);
Tailwind
colors: {
  custom: {
    50: '#9b6ecd',
    500: '#6a31b6',
    950: '#000000',
  },
}
SCSS
$custom: #6a31b6;
$custom-light: #9b6ecd;
$custom-dark: #000000;
JSON
{
  "hex": "#6a31b6",
  "rgb": {
    "r": 106,
    "g": 49,
    "b": 182
  },
  "hsl": {
    "h": 265.714,
    "s": 57.576,
    "l": 45.294
  },
  "oklch": {
    "l": 0.46532,
    "c": 0.19605,
    "h": 297.8
  },
  "luminance": 0.08638
}

Semantic roles & 50–950 ramp

primary
#6A31B6
secondary
#A7C77C
accent
#E1479F
background
#FAF6FC
surface
#F3ECF9
border
#CDC7D2
text
#0F0814
muted
#7F7B82

Preview Lab

Preview with #6A31B6

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

Preview Lab → · Contrast checker → · Palette generator →

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