#6D31B8#6D31B8

#6D31B8 is a mid, vivid violet. Relative luminance 0.089; OKLCH L 47.0% C 0.199 H 298.7°. Best body text is #FFFFFF at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#6D31B8
RGBrgb(109, 49, 184)
HSLhsl(267, 58%, 46%)
HSVhsv(267, 73%, 72%)
CMYKcmyk(40.8%, 73.4%, 0%, 27.8%)
CIE-LABlab(35.81, 53.08, -60.98)
CIE-LCHlch(35.81, 80.85, 311.04°)
OKLaboklab(47.04% 0.0953 -0.1743)
OKLCHoklch(47.04% 0.199 298.7)
XYZxyz(16.0545, 8.9083, 46.2117)
Luminance0.0891 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D31B8 #7CB831
analogous
#3138B8 #6D31B8 #B031B8
triadic
#6D31B8 #B86D31 #31B86D
tetradic
#6D31B8 #B83138 #7CB831 #31B8B0
square
#6D31B8 #B83138 #7CB831 #31B8B0
split-complementary
#6D31B8 #B8B031 #38B831
monochromatic
#341757 #502488 #6D31B8 #8C55D2 #AD85DE

Accessibility & contrast

On white

7.55
#6D31B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#6D31B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6D31B8
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D31B8#FFFFFF#000000##FFFFFF
##6D31B81.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BC
Deuteranopia (green-blind)
#0053B5
Tritanopia (blue-blind)
#5B5372
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #6d31b8;
/* rgb */ color: rgb(109, 49, 184);
/* oklch */ color: oklch(47.0% 0.199 298.7);
Tailwind
colors: {
  custom: {
    50: '#9d6fce',
    500: '#6d31b8',
    950: '#000000',
  },
}
SCSS
$custom: #6d31b8;
$custom-light: #9d6fce;
$custom-dark: #000000;
JSON
{
  "hex": "#6d31b8",
  "rgb": {
    "r": 109,
    "g": 49,
    "b": 184
  },
  "hsl": {
    "h": 266.667,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.47038,
    "c": 0.19859,
    "h": 298.7
  },
  "luminance": 0.08909
}

Semantic roles & 50–950 ramp

primary
#6D31B8
secondary
#A7C87D
accent
#E1479C
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#0F0814
muted
#7F7B82

Preview Lab

Preview with #6D31B8

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

Preview Lab → · Contrast checker → · Palette generator →

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