#6B31B3#6B31B3

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

Color values

HEX#6B31B3
RGBrgb(107, 49, 179)
HSLhsl(267, 57%, 45%)
HSVhsv(267, 73%, 70%)
CMYKcmyk(40.2%, 72.6%, 0%, 29.8%)
CIE-LABlab(35.16, 51.47, -59.09)
CIE-LCHlch(35.16, 78.36, 311.06°)
OKLaboklab(46.4% 0.0934 -0.1688)
OKLCHoklch(46.4% 0.193 299)
XYZxyz(15.2963, 8.5769, 43.4887)
Luminance0.0858 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B31B3 #79B331
analogous
#3138B3 #6B31B3 #AC31B3
triadic
#6B31B3 #B36B31 #31B36B
tetradic
#6B31B3 #B33138 #79B331 #31B3AC
square
#6B31B3 #B33138 #79B331 #31B3AC
split-complementary
#6B31B3 #B3AC31 #38B331
monochromatic
#321753 #4E2483 #6B31B3 #8A52D0 #AA82DD

Accessibility & contrast

On white

7.73
#6B31B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6B31B3
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B31B3#FFFFFF#000000##FFFFFF
##6B31B31.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B7
Deuteranopia (green-blind)
#0051B0
Tritanopia (blue-blind)
#5A526F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #6b31b3;
/* rgb */ color: rgb(107, 49, 179);
/* oklch */ color: oklch(46.4% 0.193 299.0);
Tailwind
colors: {
  custom: {
    50: '#9c6ecb',
    500: '#6b31b3',
    950: '#000000',
  },
}
SCSS
$custom: #6b31b3;
$custom-light: #9c6ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#6b31b3",
  "rgb": {
    "r": 107,
    "g": 49,
    "b": 179
  },
  "hsl": {
    "h": 266.769,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.46398,
    "c": 0.1929,
    "h": 299
  },
  "luminance": 0.08577
}

Semantic roles & 50–950 ramp

primary
#6B31B3
secondary
#A4C67A
accent
#E0489C
background
#FAF6FC
surface
#F3ECF9
border
#CDC7D2
text
#0F0813
muted
#7F7B82

Preview Lab

Preview with #6B31B3

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

Preview Lab → · Contrast checker → · Palette generator →

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