#6B1F84#6B1F84

#6B1F84 is a dark, vivid purple. Relative luminance 0.058; OKLCH L 40.8% C 0.166 H 316.2°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#6B1F84
RGBrgb(107, 31, 132)
HSLhsl(285, 62%, 32%)
HSVhsv(285, 77%, 52%)
CMYKcmyk(18.9%, 76.5%, 0%, 48.2%)
CIE-LABlab(28.83, 48.33, -40.73)
CIE-LCHlch(28.83, 63.20, 319.88°)
OKLaboklab(40.79% 0.1196 -0.1147)
OKLCHoklch(40.79% 0.166 316.2)
XYZxyz(10.7176, 5.7721, 22.3749)
Luminance0.0577 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B1F84 #38841F
analogous
#391F84 #6B1F84 #841F6A
triadic
#6B1F84 #846B1F #1F846B
tetradic
#6B1F84 #84391F #38841F #1F6A84
square
#6B1F84 #84391F #38841F #1F6A84
split-complementary
#6B1F84 #6A841F #1F8439
monochromatic
#1B0821 #431352 #6B1F84 #932BB6 #B249D4

Accessibility & contrast

On white

9.75
#6B1F84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6B1F84
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B1F84#FFFFFF#000000##FFFFFF
##6B1F841.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004087
Deuteranopia (green-blind)
#1E4682
Tritanopia (blue-blind)
#693550
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #6b1f84;
/* rgb */ color: rgb(107, 31, 132);
/* oklch */ color: oklch(40.8% 0.166 316.2);
Tailwind
colors: {
  custom: {
    50: '#9963a8',
    500: '#6b1f84',
    950: '#000000',
  },
}
SCSS
$custom: #6b1f84;
$custom-light: #9963a8;
$custom-dark: #000000;
JSON
{
  "hex": "#6b1f84",
  "rgb": {
    "r": 107,
    "g": 31,
    "b": 132
  },
  "hsl": {
    "h": 285.149,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.40792,
    "c": 0.16574,
    "h": 316.2
  },
  "luminance": 0.05772
}

Semantic roles & 50–950 ramp

primary
#6B1F84
secondary
#63B748
accent
#E5436B
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #6B1F84

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

Preview Lab → · Contrast checker → · Palette generator →

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