#6D31B2#6D31B2

#6D31B2 is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.5% C 0.192 H 300.1°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#6D31B2
RGBrgb(109, 49, 178)
HSLhsl(268, 57%, 45%)
HSVhsv(268, 72%, 70%)
CMYKcmyk(38.8%, 72.5%, 0%, 30.2%)
CIE-LABlab(35.33, 51.58, -58.21)
CIE-LCHlch(35.33, 77.77, 311.55°)
OKLaboklab(46.55% 0.0965 -0.1661)
OKLCHoklch(46.55% 0.192 300.1)
XYZxyz(15.4389, 8.6620, 42.9694)
Luminance0.0866 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D31B2 #76B231
analogous
#3136B2 #6D31B2 #AE31B2
triadic
#6D31B2 #B26D31 #31B26D
tetradic
#6D31B2 #B23136 #76B231 #31B2AE
square
#6D31B2 #B23136 #76B231 #31B2AE
split-complementary
#6D31B2 #B2AE31 #36B231
monochromatic
#321752 #502482 #6D31B2 #8C51CF #AC81DC

Accessibility & contrast

On white

7.69
#6D31B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#6D31B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6D31B2
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D31B2#FFFFFF#000000##FFFFFF
##6D31B21.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B6
Deuteranopia (green-blind)
#0052AF
Tritanopia (blue-blind)
#5D516E
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #6d31b2;
/* rgb */ color: rgb(109, 49, 178);
/* oklch */ color: oklch(46.5% 0.192 300.1);
Tailwind
colors: {
  custom: {
    50: '#9d6eca',
    500: '#6d31b2',
    950: '#000000',
  },
}
SCSS
$custom: #6d31b2;
$custom-light: #9d6eca;
$custom-dark: #000000;
JSON
{
  "hex": "#6d31b2",
  "rgb": {
    "r": 109,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 267.907,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.46547,
    "c": 0.19211,
    "h": 300.1
  },
  "luminance": 0.08662
}

Semantic roles & 50–950 ramp

primary
#6D31B2
secondary
#A2C579
accent
#E04899
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#0F0813
muted
#7F7B82

Preview Lab

Preview with #6D31B2

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

Preview Lab → · Contrast checker → · Palette generator →

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