#6D31B5#6D31B5

#6D31B5 is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.8% C 0.195 H 299.4°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#6D31B5
RGBrgb(109, 49, 181)
HSLhsl(267, 57%, 45%)
HSVhsv(267, 73%, 71%)
CMYKcmyk(39.8%, 72.9%, 0%, 29%)
CIE-LABlab(35.56, 52.33, -59.60)
CIE-LCHlch(35.56, 79.31, 311.29°)
OKLaboklab(46.79% 0.0959 -0.1702)
OKLCHoklch(46.79% 0.195 299.4)
XYZxyz(15.7434, 8.7838, 44.5731)
Luminance0.0878 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D31B5 #79B531
analogous
#3137B5 #6D31B5 #AF31B5
triadic
#6D31B5 #B56D31 #31B56D
tetradic
#6D31B5 #B53137 #79B531 #31B5AF
square
#6D31B5 #B53137 #79B531 #31B5AF
split-complementary
#6D31B5 #B5AF31 #37B531
monochromatic
#331755 #502485 #6D31B5 #8C53D0 #AC83DD

Accessibility & contrast

On white

7.62
#6D31B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#6D31B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6D31B5
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D31B5#FFFFFF#000000##FFFFFF
##6D31B51.007.622.767.62
#FFFFFF7.621.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B9
Deuteranopia (green-blind)
#0052B2
Tritanopia (blue-blind)
#5C5270
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #6d31b5;
/* rgb */ color: rgb(109, 49, 181);
/* oklch */ color: oklch(46.8% 0.195 299.4);
Tailwind
colors: {
  custom: {
    50: '#9d6fcc',
    500: '#6d31b5',
    950: '#000000',
  },
}
SCSS
$custom: #6d31b5;
$custom-light: #9d6fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#6d31b5",
  "rgb": {
    "r": 109,
    "g": 49,
    "b": 181
  },
  "hsl": {
    "h": 267.273,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.46791,
    "c": 0.19535,
    "h": 299.4
  },
  "luminance": 0.08784
}

Semantic roles & 50–950 ramp

primary
#6D31B5
secondary
#A4C77B
accent
#E1479B
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#0F0813
muted
#7F7B82

Preview Lab

Preview with #6D31B5

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

Preview Lab → · Contrast checker → · Palette generator →

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