#6B1B87#6B1B87

#6B1B87 is a dark, vivid purple. Relative luminance 0.057; OKLCH L 40.7% C 0.173 H 315.3°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#6B1B87
RGBrgb(107, 27, 135)
HSLhsl(284, 67%, 32%)
HSVhsv(284, 80%, 53%)
CMYKcmyk(20.7%, 80%, 0%, 47.1%)
CIE-LABlab(28.54, 50.42, -43.08)
CIE-LCHlch(28.54, 66.31, 319.49°)
OKLaboklab(40.65% 0.1229 -0.1216)
OKLCHoklch(40.65% 0.173 315.3)
XYZxyz(10.8278, 5.6593, 23.4390)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B1B87 #37871B
analogous
#351B87 #6B1B87 #871B6D
triadic
#6B1B87 #876B1B #1B876B
tetradic
#6B1B87 #87351B #37871B #1B6D87
square
#6B1B87 #87351B #37871B #1B6D87
split-complementary
#6B1B87 #6D871B #1B8735
monochromatic
#1A0721 #431154 #6B1B87 #9325BA #B243D9

Accessibility & contrast

On white

9.85
#6B1B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#6B1B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B1B87
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B1B87#FFFFFF#000000##FFFFFF
##6B1B871.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8A
Deuteranopia (green-blind)
#164585
Tritanopia (blue-blind)
#693451
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #6b1b87;
/* rgb */ color: rgb(107, 27, 135);
/* oklch */ color: oklch(40.7% 0.173 315.3);
Tailwind
colors: {
  custom: {
    50: '#9962ab',
    500: '#6b1b87',
    950: '#000000',
  },
}
SCSS
$custom: #6b1b87;
$custom-light: #9962ab;
$custom-dark: #000000;
JSON
{
  "hex": "#6b1b87",
  "rgb": {
    "r": 107,
    "g": 27,
    "b": 135
  },
  "hsl": {
    "h": 284.444,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.40653,
    "c": 0.17286,
    "h": 315.3
  },
  "luminance": 0.05659
}

Semantic roles & 50–950 ramp

primary
#6B1B87
secondary
#62BA44
accent
#EA3E6B
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #6B1B87

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

Preview Lab → · Contrast checker → · Palette generator →

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