#6C31BB#6C31BB

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

Color values

HEX#6C31BB
RGBrgb(108, 49, 187)
HSLhsl(266, 58%, 46%)
HSVhsv(266, 74%, 73%)
CMYKcmyk(42.2%, 73.8%, 0%, 26.7%)
CIE-LABlab(35.93, 53.67, -62.55)
CIE-LCHlch(35.93, 82.42, 310.63°)
OKLaboklab(47.18% 0.0931 -0.1789)
OKLCHoklch(47.18% 0.202 297.5)
XYZxyz(16.2500, 8.9723, 47.8798)
Luminance0.0897 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C31BB #80BB31
analogous
#313BBB #6C31BB #B131BB
triadic
#6C31BB #BB6C31 #31BB6C
tetradic
#6C31BB #BB313B #80BB31 #31BBB1
square
#6C31BB #BB313B #80BB31 #31BBB1
split-complementary
#6C31BB #BBB131 #3BBB31
monochromatic
#34185A #50248B #6C31BB #8C56D3 #AD87E0

Accessibility & contrast

On white

7.51
#6C31BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6C31BB
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C31BB#FFFFFF#000000##FFFFFF
##6C31BB1.007.512.797.51
#FFFFFF7.511.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6c31bb;
/* rgb */ color: rgb(108, 49, 187);
/* oklch */ color: oklch(47.2% 0.202 297.5);
Tailwind
colors: {
  custom: {
    50: '#9d6fd0',
    500: '#6c31bb',
    950: '#000000',
  },
}
SCSS
$custom: #6c31bb;
$custom-light: #9d6fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#6c31bb",
  "rgb": {
    "r": 108,
    "g": 49,
    "b": 187
  },
  "hsl": {
    "h": 265.652,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.47175,
    "c": 0.20171,
    "h": 297.5
  },
  "luminance": 0.08973
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6C31BB

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

Preview Lab → · Contrast checker → · Palette generator →

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