#6C31B2#6C31B2

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

Color values

HEX#6C31B2
RGBrgb(108, 49, 178)
HSLhsl(267, 57%, 45%)
HSVhsv(267, 72%, 70%)
CMYKcmyk(39.3%, 72.5%, 0%, 30.2%)
CIE-LABlab(35.20, 51.40, -58.42)
CIE-LCHlch(35.20, 77.81, 311.34°)
OKLaboklab(46.43% 0.0951 -0.1668)
OKLCHoklch(46.43% 0.192 299.7)
XYZxyz(15.3165, 8.5990, 42.9637)
Luminance0.0860 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C31B2 #77B231
analogous
#3137B2 #6C31B2 #AD31B2
triadic
#6C31B2 #B26C31 #31B26C
tetradic
#6C31B2 #B23137 #77B231 #31B2AD
square
#6C31B2 #B23137 #77B231 #31B2AD
split-complementary
#6C31B2 #B2AD31 #37B231
monochromatic
#321752 #4F2482 #6C31B2 #8B51CF #AB81DC

Accessibility & contrast

On white

7.72
#6C31B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6C31B2
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C31B2#FFFFFF#000000##FFFFFF
##6C31B21.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B6
Deuteranopia (green-blind)
#0052AF
Tritanopia (blue-blind)
#5C516E
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #6c31b2;
/* rgb */ color: rgb(108, 49, 178);
/* oklch */ color: oklch(46.4% 0.192 299.7);
Tailwind
colors: {
  custom: {
    50: '#9c6eca',
    500: '#6c31b2',
    950: '#000000',
  },
}
SCSS
$custom: #6c31b2;
$custom-light: #9c6eca;
$custom-dark: #000000;
JSON
{
  "hex": "#6c31b2",
  "rgb": {
    "r": 108,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 267.442,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.46431,
    "c": 0.19196,
    "h": 299.7
  },
  "luminance": 0.08599
}

Semantic roles & 50–950 ramp

primary
#6C31B2
secondary
#A3C579
accent
#E0489A
background
#FAF6FC
surface
#F3ECF8
border
#CDC7D1
text
#0F0813
muted
#7F7B82

Preview Lab

Preview with #6C31B2

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

Preview Lab → · Contrast checker → · Palette generator →

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