#6D31BB#6D31BB

#6D31BB is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.3% C 0.202 H 297.9°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#6D31BB
RGBrgb(109, 49, 187)
HSLhsl(266, 58%, 46%)
HSVhsv(266, 74%, 73%)
CMYKcmyk(41.7%, 73.8%, 0%, 26.7%)
CIE-LABlab(36.05, 53.84, -62.35)
CIE-LCHlch(36.05, 82.38, 310.81°)
OKLaboklab(47.29% 0.0946 -0.1783)
OKLCHoklch(47.29% 0.202 297.9)
XYZxyz(16.3723, 9.0354, 47.8855)
Luminance0.0904 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D31BB #7FBB31
analogous
#313ABB #6D31BB #B231BB
triadic
#6D31BB #BB6D31 #31BB6D
tetradic
#6D31BB #BB313A #7FBB31 #31BBB2
square
#6D31BB #BB313A #7FBB31 #31BBB2
split-complementary
#6D31BB #BBB231 #3ABB31
monochromatic
#34185A #51248B #6D31BB #8C56D3 #AD87E0

Accessibility & contrast

On white

7.48
#6D31BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#6D31BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6D31BB
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D31BB#FFFFFF#000000##FFFFFF
##6D31BB1.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BF
Deuteranopia (green-blind)
#0053B8
Tritanopia (blue-blind)
#595573
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #6d31bb;
/* rgb */ color: rgb(109, 49, 187);
/* oklch */ color: oklch(47.3% 0.202 297.9);
Tailwind
colors: {
  custom: {
    50: '#9e6fd0',
    500: '#6d31bb',
    950: '#000000',
  },
}
SCSS
$custom: #6d31bb;
$custom-light: #9e6fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#6d31bb",
  "rgb": {
    "r": 109,
    "g": 49,
    "b": 187
  },
  "hsl": {
    "h": 266.087,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.47287,
    "c": 0.20181,
    "h": 297.9
  },
  "luminance": 0.09036
}

Semantic roles & 50–950 ramp

primary
#6D31BB
secondary
#A9C97F
accent
#E2469E
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#0F0814
muted
#7F7B82

Preview Lab

Preview with #6D31BB

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

Preview Lab → · Contrast checker → · Palette generator →

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