#6B31C8#6B31C8

#6B31C8 is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.2% C 0.216 H 294.2°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#6B31C8
RGBrgb(107, 49, 200)
HSLhsl(263, 61%, 49%)
HSVhsv(263, 76%, 78%)
CMYKcmyk(46.5%, 75.5%, 0%, 21.6%)
CIE-LABlab(36.91, 56.82, -68.57)
CIE-LCHlch(36.91, 89.05, 309.65°)
OKLaboklab(48.18% 0.0885 -0.1966)
OKLCHoklch(48.18% 0.216 294.2)
XYZxyz(17.5842, 9.4920, 55.5380)
Luminance0.0949 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B31C8 #8EC831
analogous
#3143C8 #6B31C8 #B731C8
triadic
#6B31C8 #C86B31 #31C86B
tetradic
#6B31C8 #C83143 #8EC831 #31C8B7
square
#6B31C8 #C83143 #8EC831 #31C8B7
split-complementary
#6B31C8 #C8B731 #43C831
monochromatic
#361966 #512597 #6B31C8 #8D5FD8 #B090E4

Accessibility & contrast

On white

7.24
#6B31C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#6B31C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B31C8
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B31C8#FFFFFF#000000##FFFFFF
##6B31C81.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058CC
Deuteranopia (green-blind)
#0054C5
Tritanopia (blue-blind)
#4F5A7B
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #6b31c8;
/* rgb */ color: rgb(107, 49, 200);
/* oklch */ color: oklch(48.2% 0.216 294.2);
Tailwind
colors: {
  custom: {
    50: '#9e6fda',
    500: '#6b31c8',
    950: '#000000',
  },
}
SCSS
$custom: #6b31c8;
$custom-light: #9e6fda;
$custom-dark: #000000;
JSON
{
  "hex": "#6b31c8",
  "rgb": {
    "r": 107,
    "g": 49,
    "b": 200
  },
  "hsl": {
    "h": 263.046,
    "s": 60.643,
    "l": 48.824
  },
  "oklch": {
    "l": 0.4818,
    "c": 0.2156,
    "h": 294.2
  },
  "luminance": 0.09493
}

Semantic roles & 50–950 ramp

primary
#6B31C8
secondary
#B3CE86
accent
#E444A6
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #6B31C8

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

Preview Lab → · Contrast checker → · Palette generator →

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