#6D319E#6D319E

#6D319E is a dark, vivid violet. Relative luminance 0.079; OKLCH L 45.0% C 0.170 H 305.8°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#6D319E
RGBrgb(109, 49, 158)
HSLhsl(273, 53%, 41%)
HSVhsv(273, 69%, 62%)
CMYKcmyk(31%, 69%, 0%, 38%)
CIE-LABlab(33.81, 46.67, -48.67)
CIE-LCHlch(33.81, 67.43, 313.79°)
OKLaboklab(44.99% 0.0997 -0.1381)
OKLCHoklch(44.99% 0.17 305.8)
XYZxyz(13.5752, 7.9166, 33.1540)
Luminance0.0792 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D319E #629E31
analogous
#37319E #6D319E #9E3198
triadic
#6D319E #9E6D31 #319E6D
tetradic
#6D319E #9E3731 #629E31 #31989E
square
#6D319E #9E3731 #629E31 #31989E
split-complementary
#6D319E #989E31 #319E37
monochromatic
#2D1441 #4D236F #6D319E #8D46C6 #A975D4

Accessibility & contrast

On white

8.13
#6D319E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#6D319E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6D319E
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D319E#FFFFFF#000000##FFFFFF
##6D319E1.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA1
Deuteranopia (green-blind)
#0F509C
Tritanopia (blue-blind)
#644963
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #6d319e;
/* rgb */ color: rgb(109, 49, 158);
/* oklch */ color: oklch(45.0% 0.170 305.8);
Tailwind
colors: {
  custom: {
    50: '#9b6ebb',
    500: '#6d319e',
    950: '#000000',
  },
}
SCSS
$custom: #6d319e;
$custom-light: #9b6ebb;
$custom-dark: #000000;
JSON
{
  "hex": "#6d319e",
  "rgb": {
    "r": 109,
    "g": 49,
    "b": 158
  },
  "hsl": {
    "h": 273.028,
    "s": 52.657,
    "l": 40.588
  },
  "oklch": {
    "l": 0.4499,
    "c": 0.17035,
    "h": 305.8
  },
  "luminance": 0.07916
}

Semantic roles & 50–950 ramp

primary
#6D319E
secondary
#91BC6E
accent
#DC4C8D
background
#F9F6FB
surface
#F2ECF6
border
#CCC7D0
text
#0F0712
muted
#7E7A81

Preview Lab

Preview with #6D319E

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

Preview Lab → · Contrast checker → · Palette generator →

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