#6D3397#6D3397

#6D3397 is a dark, vivid violet. Relative luminance 0.079; OKLCH L 44.7% C 0.160 H 307.8°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#6D3397
RGBrgb(109, 51, 151)
HSLhsl(275, 50%, 40%)
HSVhsv(275, 66%, 59%)
CMYKcmyk(27.8%, 66.2%, 0%, 40.8%)
CIE-LABlab(33.68, 43.99, -44.64)
CIE-LCHlch(33.68, 62.67, 314.58°)
OKLaboklab(44.74% 0.0981 -0.1262)
OKLCHoklch(44.74% 0.16 307.8)
XYZxyz(13.0753, 7.8534, 30.0992)
Luminance0.0785 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D3397 #5D9733
analogous
#3B3397 #6D3397 #97338F
triadic
#6D3397 #976D33 #33976D
tetradic
#6D3397 #973B33 #5D9733 #338F97
square
#6D3397 #973B33 #5D9733 #338F97
split-complementary
#6D3397 #8F9733 #33973B
monochromatic
#2B143C #4C2469 #6D3397 #8D47C1 #AA74D0

Accessibility & contrast

On white

8.17
#6D3397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#6D3397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6D3397
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D3397#FFFFFF#000000##FFFFFF
##6D33971.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9A
Deuteranopia (green-blind)
#205095
Tritanopia (blue-blind)
#664860
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #6d3397;
/* rgb */ color: rgb(109, 51, 151);
/* oklch */ color: oklch(44.7% 0.160 307.8);
Tailwind
colors: {
  custom: {
    50: '#9a6fb6',
    500: '#6d3397',
    950: '#000000',
  },
}
SCSS
$custom: #6d3397;
$custom-light: #9a6fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#6d3397",
  "rgb": {
    "r": 109,
    "g": 51,
    "b": 151
  },
  "hsl": {
    "h": 274.8,
    "s": 49.505,
    "l": 39.608
  },
  "oklch": {
    "l": 0.44739,
    "c": 0.15987,
    "h": 307.8
  },
  "luminance": 0.07853
}

Semantic roles & 50–950 ramp

primary
#6D3397
secondary
#8DB86D
accent
#D94F89
background
#F9F6FB
surface
#F2ECF6
border
#CCC7D0
text
#0E0711
muted
#7E7A80

Preview Lab

Preview with #6D3397

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

Preview Lab → · Contrast checker → · Palette generator →

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