#6B337A#6B337A

#6B337A is a dark, vivid purple. Relative luminance 0.069; OKLCH L 42.6% C 0.127 H 318.7°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#6B337A
RGBrgb(107, 51, 122)
HSLhsl(287, 41%, 34%)
HSVhsv(287, 58%, 48%)
CMYKcmyk(12.3%, 58.2%, 0%, 52.2%)
CIE-LABlab(31.58, 36.81, -30.07)
CIE-LCHlch(31.58, 47.53, 320.75°)
OKLaboklab(42.57% 0.0954 -0.0837)
OKLCHoklch(42.57% 0.127 318.7)
XYZxyz(10.7596, 6.8990, 19.1735)
Luminance0.0690 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B337A #427A33
analogous
#48337A #6B337A #7A3366
triadic
#6B337A #7A6B33 #337A6B
tetradic
#6B337A #7A4833 #427A33 #33667A
square
#6B337A #7A4833 #427A33 #33667A
split-complementary
#6B337A #667A33 #337A48
monochromatic
#1F0F24 #45214F #6B337A #9145A5 #AD68C0

Accessibility & contrast

On white

8.82
#6B337A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#6B337A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B337A
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B337A#FFFFFF#000000##FFFFFF
##6B337A1.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24477C
Deuteranopia (green-blind)
#374C78
Tritanopia (blue-blind)
#6B3E51
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #6b337a;
/* rgb */ color: rgb(107, 51, 122);
/* oklch */ color: oklch(42.6% 0.127 318.7);
Tailwind
colors: {
  custom: {
    50: '#976ea1',
    500: '#6b337a',
    950: '#000000',
  },
}
SCSS
$custom: #6b337a;
$custom-light: #976ea1;
$custom-dark: #000000;
JSON
{
  "hex": "#6b337a",
  "rgb": {
    "r": 107,
    "g": 51,
    "b": 122
  },
  "hsl": {
    "h": 287.324,
    "s": 41.04,
    "l": 33.922
  },
  "oklch": {
    "l": 0.42568,
    "c": 0.12694,
    "h": 318.7
  },
  "luminance": 0.06899
}

Semantic roles & 50–950 ramp

primary
#6B337A
secondary
#70A861
accent
#D15771
background
#F9F6F9
surface
#F2ECF2
border
#CCC7CC
text
#0E070F
muted
#7E7A7E

Preview Lab

Preview with #6B337A

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

Preview Lab → · Contrast checker → · Palette generator →

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