#6B337D#6B337D

#6B337D is a dark, vivid purple. Relative luminance 0.070; OKLCH L 42.8% C 0.130 H 317.3°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#6B337D
RGBrgb(107, 51, 125)
HSLhsl(285, 42%, 35%)
HSVhsv(285, 59%, 49%)
CMYKcmyk(14.4%, 59.2%, 0%, 51%)
CIE-LABlab(31.75, 37.47, -31.68)
CIE-LCHlch(31.75, 49.07, 319.78°)
OKLaboklab(42.75% 0.0956 -0.0884)
OKLCHoklch(42.75% 0.13 317.3)
XYZxyz(10.9484, 6.9745, 20.1676)
Luminance0.0697 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B337D #457D33
analogous
#46337D #6B337D #7D336A
triadic
#6B337D #7D6B33 #337D6B
tetradic
#6B337D #7D4633 #457D33 #336A7D
square
#6B337D #7D4633 #457D33 #336A7D
split-complementary
#6B337D #6A7D33 #337D46
monochromatic
#211026 #462152 #6B337D #9045A8 #AC69C2

Accessibility & contrast

On white

8.77
#6B337D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#6B337D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B337D
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B337D#FFFFFF#000000##FFFFFF
##6B337D1.008.772.398.77
#FFFFFF8.771.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21477F
Deuteranopia (green-blind)
#354C7B
Tritanopia (blue-blind)
#6A3F53
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #6b337d;
/* rgb */ color: rgb(107, 51, 125);
/* oklch */ color: oklch(42.8% 0.130 317.3);
Tailwind
colors: {
  custom: {
    50: '#976ea3',
    500: '#6b337d',
    950: '#000000',
  },
}
SCSS
$custom: #6b337d;
$custom-light: #976ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#6b337d",
  "rgb": {
    "r": 107,
    "g": 51,
    "b": 125
  },
  "hsl": {
    "h": 285.405,
    "s": 42.045,
    "l": 34.51
  },
  "oklch": {
    "l": 0.4275,
    "c": 0.13022,
    "h": 317.3
  },
  "luminance": 0.06974
}

Semantic roles & 50–950 ramp

primary
#6B337D
secondary
#74AA62
accent
#D25674
background
#F9F6FA
surface
#F2ECF4
border
#CCC7CE
text
#0E070F
muted
#7E7A7F

Preview Lab

Preview with #6B337D

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

Preview Lab → · Contrast checker → · Palette generator →

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