#6D31B1#6D31B1

#6D31B1 is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.5% C 0.191 H 300.4°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#6D31B1
RGBrgb(109, 49, 177)
HSLhsl(268, 57%, 44%)
HSVhsv(268, 72%, 69%)
CMYKcmyk(38.4%, 72.3%, 0%, 30.6%)
CIE-LABlab(35.25, 51.33, -57.74)
CIE-LCHlch(35.25, 77.26, 311.64°)
OKLaboklab(46.47% 0.0967 -0.1647)
OKLCHoklch(46.47% 0.191 300.4)
XYZxyz(15.3388, 8.6220, 42.4425)
Luminance0.0862 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D31B1 #75B131
analogous
#3135B1 #6D31B1 #AD31B1
triadic
#6D31B1 #B16D31 #31B16D
tetradic
#6D31B1 #B13135 #75B131 #31B1AD
square
#6D31B1 #B13135 #75B131 #31B1AD
split-complementary
#6D31B1 #B1AD31 #35B131
monochromatic
#321651 #4F2481 #6D31B1 #8C51CF #AB80DC

Accessibility & contrast

On white

7.71
#6D31B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#6D31B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6D31B1
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D31B1#FFFFFF#000000##FFFFFF
##6D31B11.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B5
Deuteranopia (green-blind)
#0052AE
Tritanopia (blue-blind)
#5E516E
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #6d31b1;
/* rgb */ color: rgb(109, 49, 177);
/* oklch */ color: oklch(46.5% 0.191 300.4);
Tailwind
colors: {
  custom: {
    50: '#9d6ec9',
    500: '#6d31b1',
    950: '#000000',
  },
}
SCSS
$custom: #6d31b1;
$custom-light: #9d6ec9;
$custom-dark: #000000;
JSON
{
  "hex": "#6d31b1",
  "rgb": {
    "r": 109,
    "g": 49,
    "b": 177
  },
  "hsl": {
    "h": 268.125,
    "s": 56.637,
    "l": 44.314
  },
  "oklch": {
    "l": 0.46466,
    "c": 0.19103,
    "h": 300.4
  },
  "luminance": 0.08622
}

Semantic roles & 50–950 ramp

primary
#6D31B1
secondary
#A1C579
accent
#E04899
background
#FAF6FC
surface
#F3ECF8
border
#CDC7D1
text
#0F0813
muted
#7F7B82

Preview Lab

Preview with #6D31B1

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

Preview Lab → · Contrast checker → · Palette generator →

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