#6B1785#6B1785

#6B1785 is a dark, vivid purple. Relative luminance 0.054; OKLCH L 40.2% C 0.175 H 316.4°. Best body text is #FFFFFF at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#6B1785
RGBrgb(107, 23, 133)
HSLhsl(286, 71%, 31%)
HSVhsv(286, 83%, 52%)
CMYKcmyk(19.5%, 82.7%, 0%, 47.8%)
CIE-LABlab(27.93, 51.33, -42.80)
CIE-LCHlch(27.93, 66.83, 320.17°)
OKLaboklab(40.18% 0.1266 -0.1207)
OKLCHoklch(40.18% 0.175 316.4)
XYZxyz(10.6028, 5.4325, 22.6758)
Luminance0.0543 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B1785 #318517
analogous
#341785 #6B1785 #851768
triadic
#6B1785 #856B17 #17856B
tetradic
#6B1785 #853417 #318517 #176885
square
#6B1785 #853417 #318517 #176885
split-complementary
#6B1785 #688517 #178534
monochromatic
#17051D #410E51 #6B1785 #9520B9 #B63ADD

Accessibility & contrast

On white

10.07
#6B1785 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#6B1785 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B1785
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B1785#FFFFFF#000000##FFFFFF
##6B17851.0010.072.0910.07
#FFFFFF10.071.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D88
Deuteranopia (green-blind)
#164483
Tritanopia (blue-blind)
#69314F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #6b1785;
/* rgb */ color: rgb(107, 23, 133);
/* oklch */ color: oklch(40.2% 0.175 316.4);
Tailwind
colors: {
  custom: {
    50: '#9960a9',
    500: '#6b1785',
    950: '#000000',
  },
}
SCSS
$custom: #6b1785;
$custom-light: #9960a9;
$custom-dark: #000000;
JSON
{
  "hex": "#6b1785",
  "rgb": {
    "r": 107,
    "g": 23,
    "b": 133
  },
  "hsl": {
    "h": 285.818,
    "s": 70.513,
    "l": 30.588
  },
  "oklch": {
    "l": 0.40182,
    "c": 0.17493,
    "h": 316.4
  },
  "luminance": 0.05432
}

Semantic roles & 50–950 ramp

primary
#6B1785
secondary
#5CB93F
accent
#ED3B65
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0510
muted
#7E7A7F

Preview Lab

Preview with #6B1785

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

Preview Lab → · Contrast checker → · Palette generator →

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