#6D31B0#6D31B0

#6D31B0 is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.4% C 0.190 H 300.7°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#6D31B0
RGBrgb(109, 49, 176)
HSLhsl(268, 56%, 44%)
HSVhsv(268, 72%, 69%)
CMYKcmyk(38.1%, 72.2%, 0%, 31%)
CIE-LABlab(35.17, 51.08, -57.28)
CIE-LCHlch(35.17, 76.75, 311.73°)
OKLaboklab(46.39% 0.0969 -0.1634)
OKLCHoklch(46.39% 0.19 300.7)
XYZxyz(15.2395, 8.5823, 41.9195)
Luminance0.0858 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D31B0 #74B031
analogous
#3135B0 #6D31B0 #AC31B0
triadic
#6D31B0 #B06D31 #31B06D
tetradic
#6D31B0 #B03135 #74B031 #31B0AC
square
#6D31B0 #B03135 #74B031 #31B0AC
split-complementary
#6D31B0 #B0AC31 #35B031
monochromatic
#321650 #4F2480 #6D31B0 #8C50CE #AB80DC

Accessibility & contrast

On white

7.73
#6D31B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6D31B0
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D31B0#FFFFFF#000000##FFFFFF
##6D31B01.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B4
Deuteranopia (green-blind)
#0052AD
Tritanopia (blue-blind)
#5E506D
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #6d31b0;
/* rgb */ color: rgb(109, 49, 176);
/* oklch */ color: oklch(46.4% 0.190 300.7);
Tailwind
colors: {
  custom: {
    50: '#9d6ec8',
    500: '#6d31b0',
    950: '#000000',
  },
}
SCSS
$custom: #6d31b0;
$custom-light: #9d6ec8;
$custom-dark: #000000;
JSON
{
  "hex": "#6d31b0",
  "rgb": {
    "r": 109,
    "g": 49,
    "b": 176
  },
  "hsl": {
    "h": 268.346,
    "s": 56.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.46386,
    "c": 0.18994,
    "h": 300.7
  },
  "luminance": 0.08582
}

Semantic roles & 50–950 ramp

primary
#6D31B0
secondary
#A1C578
accent
#E04898
background
#FAF6FC
surface
#F3ECF8
border
#CDC7D1
text
#0F0813
muted
#7F7B82

Preview Lab

Preview with #6D31B0

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

Preview Lab → · Contrast checker → · Palette generator →

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