#6B31C2#6B31C2

#6B31C2 is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.7% C 0.209 H 295.5°. Best body text is #FFFFFF at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#6B31C2
RGBrgb(107, 49, 194)
HSLhsl(264, 60%, 48%)
HSVhsv(264, 75%, 76%)
CMYKcmyk(44.8%, 74.7%, 0%, 23.9%)
CIE-LABlab(36.40, 55.28, -65.91)
CIE-LCHlch(36.40, 86.02, 309.99°)
OKLaboklab(47.66% 0.09 -0.1888)
OKLCHoklch(47.66% 0.209 295.5)
XYZxyz(16.8967, 9.2170, 51.9173)
Luminance0.0922 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B31C2 #88C231
analogous
#313FC2 #6B31C2 #B331C2
triadic
#6B31C2 #C26B31 #31C26B
tetradic
#6B31C2 #C2313F #88C231 #31C2B3
square
#6B31C2 #C2313F #88C231 #31C2B3
split-complementary
#6B31C2 #C2B331 #3FC231
monochromatic
#351860 #502591 #6B31C2 #8C5BD6 #AE8CE2

Accessibility & contrast

On white

7.39
#6B31C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#6B31C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B31C2
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B31C2#FFFFFF#000000##FFFFFF
##6B31C21.007.392.847.39
#FFFFFF7.391.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C6
Deuteranopia (green-blind)
#0053BF
Tritanopia (blue-blind)
#535877
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #6b31c2;
/* rgb */ color: rgb(107, 49, 194);
/* oklch */ color: oklch(47.7% 0.209 295.5);
Tailwind
colors: {
  custom: {
    50: '#9d6fd6',
    500: '#6b31c2',
    950: '#000000',
  },
}
SCSS
$custom: #6b31c2;
$custom-light: #9d6fd6;
$custom-dark: #000000;
JSON
{
  "hex": "#6b31c2",
  "rgb": {
    "r": 107,
    "g": 49,
    "b": 194
  },
  "hsl": {
    "h": 264,
    "s": 59.671,
    "l": 47.647
  },
  "oklch": {
    "l": 0.47659,
    "c": 0.20916,
    "h": 295.5
  },
  "luminance": 0.09217
}

Semantic roles & 50–950 ramp

primary
#6B31C2
secondary
#AFCC83
accent
#E345A4
background
#FAF6FD
surface
#F4ECFA
border
#CEC7D3
text
#0F0814
muted
#7F7B83

Preview Lab

Preview with #6B31C2

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

Preview Lab → · Contrast checker → · Palette generator →

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