#6E31B3#6E31B3

#6E31B3 is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.7% C 0.193 H 300.4°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#6E31B3
RGBrgb(110, 49, 179)
HSLhsl(268, 57%, 45%)
HSVhsv(268, 73%, 70%)
CMYKcmyk(38.5%, 72.6%, 0%, 29.8%)
CIE-LABlab(35.53, 52.01, -58.46)
CIE-LCHlch(35.53, 78.25, 311.66°)
OKLaboklab(46.75% 0.0977 -0.1668)
OKLCHoklch(46.75% 0.193 300.4)
XYZxyz(15.6634, 8.7662, 43.5059)
Luminance0.0877 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6E31B3 #76B331
analogous
#3135B3 #6E31B3 #AF31B3
triadic
#6E31B3 #B36E31 #31B36E
tetradic
#6E31B3 #B33135 #76B331 #31B3AF
square
#6E31B3 #B33135 #76B331 #31B3AF
split-complementary
#6E31B3 #B3AF31 #35B331
monochromatic
#331753 #502483 #6E31B3 #8D52D0 #AC82DD

Accessibility & contrast

On white

7.63
#6E31B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#6E31B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6E31B3
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6E31B3#FFFFFF#000000##FFFFFF
##6E31B31.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B7
Deuteranopia (green-blind)
#0053B0
Tritanopia (blue-blind)
#5E516F
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #6e31b3;
/* rgb */ color: rgb(110, 49, 179);
/* oklch */ color: oklch(46.7% 0.193 300.4);
Tailwind
colors: {
  custom: {
    50: '#9e6fcb',
    500: '#6e31b3',
    950: '#000000',
  },
}
SCSS
$custom: #6e31b3;
$custom-light: #9e6fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#6e31b3",
  "rgb": {
    "r": 110,
    "g": 49,
    "b": 179
  },
  "hsl": {
    "h": 268.154,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.46745,
    "c": 0.19335,
    "h": 300.4
  },
  "luminance": 0.08766
}

Semantic roles & 50–950 ramp

primary
#6E31B3
secondary
#A2C67A
accent
#E04899
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#0F0813
muted
#7F7B82

Preview Lab

Preview with #6E31B3

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

Preview Lab → · Contrast checker → · Palette generator →

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