#6D31B6#6D31B6

#6D31B6 is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.9% C 0.196 H 299.1°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#6D31B6
RGBrgb(109, 49, 182)
HSLhsl(267, 58%, 45%)
HSVhsv(267, 73%, 71%)
CMYKcmyk(40.1%, 73.1%, 0%, 28.6%)
CIE-LABlab(35.65, 52.58, -60.06)
CIE-LCHlch(35.65, 79.82, 311.20°)
OKLaboklab(46.87% 0.0957 -0.1716)
OKLCHoklch(46.87% 0.196 299.1)
XYZxyz(15.8464, 8.8250, 45.1154)
Luminance0.0882 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D31B6 #7AB631
analogous
#3137B6 #6D31B6 #B031B6
triadic
#6D31B6 #B66D31 #31B66D
tetradic
#6D31B6 #B63137 #7AB631 #31B6B0
square
#6D31B6 #B63137 #7AB631 #31B6B0
split-complementary
#6D31B6 #B6B031 #37B631
monochromatic
#331756 #502486 #6D31B6 #8C53D1 #AC84DE

Accessibility & contrast

On white

7.59
#6D31B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#6D31B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6D31B6
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D31B6#FFFFFF#000000##FFFFFF
##6D31B61.007.592.767.59
#FFFFFF7.591.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BA
Deuteranopia (green-blind)
#0053B3
Tritanopia (blue-blind)
#5C5371
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #6d31b6;
/* rgb */ color: rgb(109, 49, 182);
/* oklch */ color: oklch(46.9% 0.196 299.1);
Tailwind
colors: {
  custom: {
    50: '#9d6fcd',
    500: '#6d31b6',
    950: '#000000',
  },
}
SCSS
$custom: #6d31b6;
$custom-light: #9d6fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#6d31b6",
  "rgb": {
    "r": 109,
    "g": 49,
    "b": 182
  },
  "hsl": {
    "h": 267.068,
    "s": 57.576,
    "l": 45.294
  },
  "oklch": {
    "l": 0.46873,
    "c": 0.19643,
    "h": 299.1
  },
  "luminance": 0.08825
}

Semantic roles & 50–950 ramp

primary
#6D31B6
secondary
#A5C77C
accent
#E1479B
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#0F0814
muted
#7F7B82

Preview Lab

Preview with #6D31B6

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

Preview Lab → · Contrast checker → · Palette generator →

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