#6B1F87#6B1F87

#6B1F87 is a dark, vivid purple. Relative luminance 0.059; OKLCH L 41.0% C 0.169 H 315.0°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#6B1F87
RGBrgb(107, 31, 135)
HSLhsl(284, 63%, 33%)
HSVhsv(284, 77%, 53%)
CMYKcmyk(20.7%, 77%, 0%, 47.1%)
CIE-LABlab(29.04, 48.95, -42.26)
CIE-LCHlch(29.04, 64.67, 319.20°)
OKLaboklab(41.01% 0.1192 -0.1192)
OKLCHoklch(41.01% 0.169 315)
XYZxyz(10.9258, 5.8554, 23.4717)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B1F87 #3B871F
analogous
#371F87 #6B1F87 #871F6F
triadic
#6B1F87 #876B1F #1F876B
tetradic
#6B1F87 #87371F #3B871F #1F6F87
square
#6B1F87 #87371F #3B871F #1F6F87
split-complementary
#6B1F87 #6F871F #1F8737
monochromatic
#1C0823 #441455 #6B1F87 #922AB9 #B04BD6

Accessibility & contrast

On white

9.67
#6B1F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#6B1F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B1F87
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B1F87#FFFFFF#000000##FFFFFF
##6B1F871.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408A
Deuteranopia (green-blind)
#1A4685
Tritanopia (blue-blind)
#693652
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #6b1f87;
/* rgb */ color: rgb(107, 31, 135);
/* oklch */ color: oklch(41.0% 0.169 315.0);
Tailwind
colors: {
  custom: {
    50: '#9963ab',
    500: '#6b1f87',
    950: '#000000',
  },
}
SCSS
$custom: #6b1f87;
$custom-light: #9963ab;
$custom-dark: #000000;
JSON
{
  "hex": "#6b1f87",
  "rgb": {
    "r": 107,
    "g": 31,
    "b": 135
  },
  "hsl": {
    "h": 283.846,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.41012,
    "c": 0.16857,
    "h": 315
  },
  "luminance": 0.05855
}

Semantic roles & 50–950 ramp

primary
#6B1F87
secondary
#67B84A
accent
#E6426E
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #6B1F87

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

Preview Lab → · Contrast checker → · Palette generator →

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