#6D31B9#6D31B9

#6D31B9 is a mid, vivid violet. Relative luminance 0.090; OKLCH L 47.1% C 0.200 H 298.4°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#6D31B9
RGBrgb(109, 49, 185)
HSLhsl(266, 58%, 46%)
HSVhsv(266, 74%, 73%)
CMYKcmyk(41.1%, 73.5%, 0%, 27.5%)
CIE-LABlab(35.89, 53.33, -61.44)
CIE-LCHlch(35.89, 81.36, 310.96°)
OKLaboklab(47.12% 0.095 -0.1756)
OKLCHoklch(47.12% 0.2 298.4)
XYZxyz(16.1597, 8.9504, 46.7657)
Luminance0.0895 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D31B9 #7DB931
analogous
#3139B9 #6D31B9 #B131B9
triadic
#6D31B9 #B96D31 #31B96D
tetradic
#6D31B9 #B93139 #7DB931 #31B9B1
square
#6D31B9 #B93139 #7DB931 #31B9B1
split-complementary
#6D31B9 #B9B131 #39B931
monochromatic
#341758 #502489 #6D31B9 #8C55D2 #AD86DF

Accessibility & contrast

On white

7.53
#6D31B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6D31B9
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D31B9#FFFFFF#000000##FFFFFF
##6D31B91.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BD
Deuteranopia (green-blind)
#0053B6
Tritanopia (blue-blind)
#5A5472
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #6d31b9;
/* rgb */ color: rgb(109, 49, 185);
/* oklch */ color: oklch(47.1% 0.200 298.4);
Tailwind
colors: {
  custom: {
    50: '#9d6fcf',
    500: '#6d31b9',
    950: '#000000',
  },
}
SCSS
$custom: #6d31b9;
$custom-light: #9d6fcf;
$custom-dark: #000000;
JSON
{
  "hex": "#6d31b9",
  "rgb": {
    "r": 109,
    "g": 49,
    "b": 185
  },
  "hsl": {
    "h": 266.471,
    "s": 58.12,
    "l": 45.882
  },
  "oklch": {
    "l": 0.47121,
    "c": 0.19966,
    "h": 298.4
  },
  "luminance": 0.08951
}

Semantic roles & 50–950 ramp

primary
#6D31B9
secondary
#A7C87D
accent
#E1469D
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#0F0814
muted
#7F7B82

Preview Lab

Preview with #6D31B9

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

Preview Lab → · Contrast checker → · Palette generator →

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