#6B1B8A#6B1B8A

#6B1B8A is a dark, vivid purple. Relative luminance 0.057; OKLCH L 40.9% C 0.176 H 314.1°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#6B1B8A
RGBrgb(107, 27, 138)
HSLhsl(283, 67%, 32%)
HSVhsv(283, 80%, 54%)
CMYKcmyk(22.5%, 80.4%, 0%, 45.9%)
CIE-LABlab(28.76, 51.04, -44.59)
CIE-LCHlch(28.76, 67.77, 318.86°)
OKLaboklab(40.88% 0.1223 -0.126)
OKLCHoklch(40.88% 0.176 314.1)
XYZxyz(11.0420, 5.7450, 24.5671)
Luminance0.0575 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B1B8A #3A8A1B
analogous
#331B8A #6B1B8A #8A1B72
triadic
#6B1B8A #8A6B1B #1B8A6B
tetradic
#6B1B8A #8A331B #3A8A1B #1B728A
square
#6B1B8A #8A331B #3A8A1B #1B728A
split-complementary
#6B1B8A #728A1B #1B8A33
monochromatic
#1C0724 #431157 #6B1B8A #9325BD #B145DB

Accessibility & contrast

On white

9.77
#6B1B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#6B1B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B1B8A
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B1B8A#FFFFFF#000000##FFFFFF
##6B1B8A1.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408D
Deuteranopia (green-blind)
#114688
Tritanopia (blue-blind)
#683553
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #6b1b8a;
/* rgb */ color: rgb(107, 27, 138);
/* oklch */ color: oklch(40.9% 0.176 314.1);
Tailwind
colors: {
  custom: {
    50: '#9962ad',
    500: '#6b1b8a',
    950: '#000000',
  },
}
SCSS
$custom: #6b1b8a;
$custom-light: #9962ad;
$custom-dark: #000000;
JSON
{
  "hex": "#6b1b8a",
  "rgb": {
    "r": 107,
    "g": 27,
    "b": 138
  },
  "hsl": {
    "h": 283.243,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.40881,
    "c": 0.17562,
    "h": 314.1
  },
  "luminance": 0.05745
}

Semantic roles & 50–950 ramp

primary
#6B1B8A
secondary
#66BC45
accent
#EA3E6E
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #6B1B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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