#6D31B3#6D31B3

#6D31B3 is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.6% C 0.193 H 299.9°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#6D31B3
RGBrgb(109, 49, 179)
HSLhsl(268, 57%, 45%)
HSVhsv(268, 73%, 70%)
CMYKcmyk(39.1%, 72.6%, 0%, 29.8%)
CIE-LABlab(35.40, 51.83, -58.67)
CIE-LCHlch(35.40, 78.29, 311.46°)
OKLaboklab(46.63% 0.0963 -0.1675)
OKLCHoklch(46.63% 0.193 299.9)
XYZxyz(15.5396, 8.7023, 43.5001)
Luminance0.0870 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D31B3 #77B331
analogous
#3136B3 #6D31B3 #AE31B3
triadic
#6D31B3 #B36D31 #31B36D
tetradic
#6D31B3 #B33136 #77B331 #31B3AE
square
#6D31B3 #B33136 #77B331 #31B3AE
split-complementary
#6D31B3 #B3AE31 #36B331
monochromatic
#321753 #502483 #6D31B3 #8C52D0 #AC82DD

Accessibility & contrast

On white

7.66
#6D31B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#6D31B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6D31B3
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D31B3#FFFFFF#000000##FFFFFF
##6D31B31.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6d31b3;
/* rgb */ color: rgb(109, 49, 179);
/* oklch */ color: oklch(46.6% 0.193 299.9);
Tailwind
colors: {
  custom: {
    50: '#9d6fcb',
    500: '#6d31b3',
    950: '#000000',
  },
}
SCSS
$custom: #6d31b3;
$custom-light: #9d6fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#6d31b3",
  "rgb": {
    "r": 109,
    "g": 49,
    "b": 179
  },
  "hsl": {
    "h": 267.692,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.46628,
    "c": 0.19319,
    "h": 299.9
  },
  "luminance": 0.08703
}

Semantic roles & 50–950 ramp

primary
#6D31B3
secondary
#A3C67A
accent
#E0489A
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#0F0813
muted
#7F7B82

Preview Lab

Preview with #6D31B3

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

Preview Lab → · Contrast checker → · Palette generator →

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