#6D31BA#6D31BA

#6D31BA is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.2% C 0.201 H 298.2°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#6D31BA
RGBrgb(109, 49, 186)
HSLhsl(266, 58%, 46%)
HSVhsv(266, 74%, 73%)
CMYKcmyk(41.4%, 73.7%, 0%, 27.1%)
CIE-LABlab(35.97, 53.59, -61.89)
CIE-LCHlch(35.97, 81.87, 310.89°)
OKLaboklab(47.2% 0.0948 -0.1769)
OKLCHoklch(47.2% 0.201 298.2)
XYZxyz(16.2656, 8.9927, 47.3237)
Luminance0.0899 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D31BA #7EBA31
analogous
#313ABA #6D31BA #B131BA
triadic
#6D31BA #BA6D31 #31BA6D
tetradic
#6D31BA #BA313A #7EBA31 #31BAB1
square
#6D31BA #BA313A #7EBA31 #31BAB1
split-complementary
#6D31BA #BAB131 #3ABA31
monochromatic
#341759 #51248A #6D31BA #8C56D2 #AD86DF

Accessibility & contrast

On white

7.50
#6D31BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#6D31BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6D31BA
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D31BA#FFFFFF#000000##FFFFFF
##6D31BA1.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BE
Deuteranopia (green-blind)
#0053B7
Tritanopia (blue-blind)
#5A5473
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #6d31ba;
/* rgb */ color: rgb(109, 49, 186);
/* oklch */ color: oklch(47.2% 0.201 298.2);
Tailwind
colors: {
  custom: {
    50: '#9e6fd0',
    500: '#6d31ba',
    950: '#000000',
  },
}
SCSS
$custom: #6d31ba;
$custom-light: #9e6fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#6d31ba",
  "rgb": {
    "r": 109,
    "g": 49,
    "b": 186
  },
  "hsl": {
    "h": 266.277,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.47204,
    "c": 0.20074,
    "h": 298.2
  },
  "luminance": 0.08993
}

Semantic roles & 50–950 ramp

primary
#6D31BA
secondary
#A8C97E
accent
#E2469E
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#0F0814
muted
#7F7B82

Preview Lab

Preview with #6D31BA

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

Preview Lab → · Contrast checker → · Palette generator →

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