#6E31BA#6E31BA

#6E31BA is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.3% C 0.201 H 298.6°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#6E31BA
RGBrgb(110, 49, 186)
HSLhsl(267, 58%, 46%)
HSVhsv(267, 74%, 73%)
CMYKcmyk(40.9%, 73.7%, 0%, 27.1%)
CIE-LABlab(36.09, 53.76, -61.69)
CIE-LCHlch(36.09, 81.83, 311.07°)
OKLaboklab(47.32% 0.0963 -0.1763)
OKLCHoklch(47.32% 0.201 298.6)
XYZxyz(16.3894, 9.0566, 47.3295)
Luminance0.0906 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6E31BA #7DBA31
analogous
#3139BA #6E31BA #B231BA
triadic
#6E31BA #BA6E31 #31BA6E
tetradic
#6E31BA #BA3139 #7DBA31 #31BAB2
square
#6E31BA #BA3139 #7DBA31 #31BAB2
split-complementary
#6E31BA #BAB231 #39BA31
monochromatic
#351759 #51248A #6E31BA #8D56D2 #AE86DF

Accessibility & contrast

On white

7.47
#6E31BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#6E31BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6E31BA
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6E31BA#FFFFFF#000000##FFFFFF
##6E31BA1.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BE
Deuteranopia (green-blind)
#0054B7
Tritanopia (blue-blind)
#5B5473
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #6e31ba;
/* rgb */ color: rgb(110, 49, 186);
/* oklch */ color: oklch(47.3% 0.201 298.6);
Tailwind
colors: {
  custom: {
    50: '#9e6fd0',
    500: '#6e31ba',
    950: '#000000',
  },
}
SCSS
$custom: #6e31ba;
$custom-light: #9e6fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#6e31ba",
  "rgb": {
    "r": 110,
    "g": 49,
    "b": 186
  },
  "hsl": {
    "h": 266.715,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.47318,
    "c": 0.20087,
    "h": 298.6
  },
  "luminance": 0.09057
}

Semantic roles & 50–950 ramp

primary
#6E31BA
secondary
#A7C97E
accent
#E2469C
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#0F0814
muted
#7F7B82

Preview Lab

Preview with #6E31BA

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

Preview Lab → · Contrast checker → · Palette generator →

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