#6B1F8A#6B1F8A

#6B1F8A is a dark, vivid purple. Relative luminance 0.059; OKLCH L 41.2% C 0.171 H 313.8°. Best body text is #FFFFFF at 9.60:1 contrast (WCAG AA passes).

Color values

HEX#6B1F8A
RGBrgb(107, 31, 138)
HSLhsl(283, 63%, 33%)
HSVhsv(283, 78%, 54%)
CMYKcmyk(22.5%, 77.5%, 0%, 45.9%)
CIE-LABlab(29.26, 49.59, -43.77)
CIE-LCHlch(29.26, 66.14, 318.57°)
OKLaboklab(41.24% 0.1187 -0.1236)
OKLCHoklch(41.24% 0.171 313.8)
XYZxyz(11.1400, 5.9411, 24.5998)
Luminance0.0594 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B1F8A #3E8A1F
analogous
#351F8A #6B1F8A #8A1F73
triadic
#6B1F8A #8A6B1F #1F8A6B
tetradic
#6B1F8A #8A351F #3E8A1F #1F738A
square
#6B1F8A #8A351F #3E8A1F #1F738A
split-complementary
#6B1F8A #738A1F #1F8A35
monochromatic
#1E0926 #441458 #6B1F8A #922ABC #AF4CD7

Accessibility & contrast

On white

9.60
#6B1F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#6B1F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B1F8A
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B1F8A#FFFFFF#000000##FFFFFF
##6B1F8A1.009.602.199.60
#FFFFFF9.601.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418D
Deuteranopia (green-blind)
#164788
Tritanopia (blue-blind)
#683753
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #6b1f8a;
/* rgb */ color: rgb(107, 31, 138);
/* oklch */ color: oklch(41.2% 0.171 313.8);
Tailwind
colors: {
  custom: {
    50: '#9964ad',
    500: '#6b1f8a',
    950: '#000000',
  },
}
SCSS
$custom: #6b1f8a;
$custom-light: #9964ad;
$custom-dark: #000000;
JSON
{
  "hex": "#6b1f8a",
  "rgb": {
    "r": 107,
    "g": 31,
    "b": 138
  },
  "hsl": {
    "h": 282.617,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.41236,
    "c": 0.17142,
    "h": 313.8
  },
  "luminance": 0.05941
}

Semantic roles & 50–950 ramp

primary
#6B1F8A
secondary
#6BBA4B
accent
#E64171
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #6B1F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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