#6C31BA#6C31BA

#6C31BA is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 47.1% C 0.201 H 297.7°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#6C31BA
RGBrgb(108, 49, 186)
HSLhsl(266, 58%, 46%)
HSVhsv(266, 74%, 73%)
CMYKcmyk(41.9%, 73.7%, 0%, 27.1%)
CIE-LABlab(35.85, 53.41, -62.10)
CIE-LCHlch(35.85, 81.91, 310.70°)
OKLaboklab(47.09% 0.0934 -0.1776)
OKLCHoklch(47.09% 0.201 297.7)
XYZxyz(16.1433, 8.9297, 47.3179)
Luminance0.0893 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C31BA #7FBA31
analogous
#313BBA #6C31BA #B031BA
triadic
#6C31BA #BA6C31 #31BA6C
tetradic
#6C31BA #BA313B #7FBA31 #31BAB0
square
#6C31BA #BA313B #7FBA31 #31BAB0
split-complementary
#6C31BA #BAB031 #3BBA31
monochromatic
#341759 #50248A #6C31BA #8B56D2 #AD86DF

Accessibility & contrast

On white

7.54
#6C31BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#6C31BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C31BA
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C31BA#FFFFFF#000000##FFFFFF
##6C31BA1.007.542.797.54
#FFFFFF7.541.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BE
Deuteranopia (green-blind)
#0053B7
Tritanopia (blue-blind)
#585473
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #6c31ba;
/* rgb */ color: rgb(108, 49, 186);
/* oklch */ color: oklch(47.1% 0.201 297.7);
Tailwind
colors: {
  custom: {
    50: '#9d6fd0',
    500: '#6c31ba',
    950: '#000000',
  },
}
SCSS
$custom: #6c31ba;
$custom-light: #9d6fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#6c31ba",
  "rgb": {
    "r": 108,
    "g": 49,
    "b": 186
  },
  "hsl": {
    "h": 265.839,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.47091,
    "c": 0.20063,
    "h": 297.7
  },
  "luminance": 0.0893
}

Semantic roles & 50–950 ramp

primary
#6C31BA
secondary
#A9C97E
accent
#E2469F
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#0F0814
muted
#7F7B82

Preview Lab

Preview with #6C31BA

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

Preview Lab → · Contrast checker → · Palette generator →

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