#6D31C4#6D31C4

#6D31C4 is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 48.0% C 0.211 H 295.9°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#6D31C4
RGBrgb(109, 49, 196)
HSLhsl(264, 60%, 48%)
HSVhsv(264, 75%, 77%)
CMYKcmyk(44.4%, 75%, 0%, 23.1%)
CIE-LABlab(36.80, 56.11, -66.40)
CIE-LCHlch(36.80, 86.94, 310.20°)
OKLaboklab(48.05% 0.0924 -0.1902)
OKLCHoklch(48.05% 0.211 295.9)
XYZxyz(17.3661, 9.4329, 53.1196)
Luminance0.0943 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D31C4 #88C431
analogous
#313EC4 #6D31C4 #B631C4
triadic
#6D31C4 #C46D31 #31C46D
tetradic
#6D31C4 #C4313E #88C431 #31C4B6
square
#6D31C4 #C4313E #88C431 #31C4B6
split-complementary
#6D31C4 #C4B631 #3EC431
monochromatic
#371962 #522593 #6D31C4 #8E5CD6 #B08DE2

Accessibility & contrast

On white

7.27
#6D31C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#6D31C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6D31C4
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D31C4#FFFFFF#000000##FFFFFF
##6D31C41.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C8
Deuteranopia (green-blind)
#0054C1
Tritanopia (blue-blind)
#555879
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #6d31c4;
/* rgb */ color: rgb(109, 49, 196);
/* oklch */ color: oklch(48.0% 0.211 295.9);
Tailwind
colors: {
  custom: {
    50: '#9f6fd7',
    500: '#6d31c4',
    950: '#000000',
  },
}
SCSS
$custom: #6d31c4;
$custom-light: #9f6fd7;
$custom-dark: #000000;
JSON
{
  "hex": "#6d31c4",
  "rgb": {
    "r": 109,
    "g": 49,
    "b": 196
  },
  "hsl": {
    "h": 264.49,
    "s": 60,
    "l": 48.039
  },
  "oklch": {
    "l": 0.4805,
    "c": 0.21146,
    "h": 295.9
  },
  "luminance": 0.09433
}

Semantic roles & 50–950 ramp

primary
#6D31C4
secondary
#AFCD84
accent
#E345A2
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #6D31C4

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

Preview Lab → · Contrast checker → · Palette generator →

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