#6D31C5#6D31C5

#6D31C5 is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.1% C 0.213 H 295.7°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#6D31C5
RGBrgb(109, 49, 197)
HSLhsl(264, 60%, 48%)
HSVhsv(264, 75%, 77%)
CMYKcmyk(44.7%, 75.1%, 0%, 22.7%)
CIE-LABlab(36.89, 56.37, -66.85)
CIE-LCHlch(36.89, 87.44, 310.14°)
OKLaboklab(48.14% 0.0922 -0.1915)
OKLCHoklch(48.14% 0.213 295.7)
XYZxyz(17.4803, 9.4786, 53.7211)
Luminance0.0948 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D31C5 #89C531
analogous
#313FC5 #6D31C5 #B731C5
triadic
#6D31C5 #C56D31 #31C56D
tetradic
#6D31C5 #C5313F #89C531 #31C5B7
square
#6D31C5 #C5313F #89C531 #31C5B7
split-complementary
#6D31C5 #C5B731 #3FC531
monochromatic
#371963 #522594 #6D31C5 #8E5DD7 #B08EE3

Accessibility & contrast

On white

7.25
#6D31C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#6D31C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6D31C5
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D31C5#FFFFFF#000000##FFFFFF
##6D31C51.007.252.907.25
#FFFFFF7.251.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C9
Deuteranopia (green-blind)
#0055C2
Tritanopia (blue-blind)
#555979
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #6d31c5;
/* rgb */ color: rgb(109, 49, 197);
/* oklch */ color: oklch(48.1% 0.213 295.7);
Tailwind
colors: {
  custom: {
    50: '#9f6fd8',
    500: '#6d31c5',
    950: '#000000',
  },
}
SCSS
$custom: #6d31c5;
$custom-light: #9f6fd8;
$custom-dark: #000000;
JSON
{
  "hex": "#6d31c5",
  "rgb": {
    "r": 109,
    "g": 49,
    "b": 197
  },
  "hsl": {
    "h": 264.324,
    "s": 60.163,
    "l": 48.235
  },
  "oklch": {
    "l": 0.48136,
    "c": 0.21253,
    "h": 295.7
  },
  "luminance": 0.09479
}

Semantic roles & 50–950 ramp

primary
#6D31C5
secondary
#B0CD85
accent
#E344A3
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #6D31C5

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

Preview Lab → · Contrast checker → · Palette generator →

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