#6B158E#6B158E

#6B158E is a dark, vivid purple. Relative luminance 0.056; OKLCH L 40.7% C 0.185 H 313.1°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#6B158E
RGBrgb(107, 21, 142)
HSLhsl(283, 74%, 32%)
HSVhsv(283, 85%, 56%)
CMYKcmyk(24.6%, 85.2%, 0%, 44.3%)
CIE-LABlab(28.42, 53.76, -47.62)
CIE-LCHlch(28.42, 71.81, 318.47°)
OKLaboklab(40.74% 0.1261 -0.1349)
OKLCHoklch(40.74% 0.185 313.1)
XYZxyz(11.2132, 5.6155, 26.0792)
Luminance0.0561 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B158E #388E15
analogous
#2F158E #6B158E #8E1574
triadic
#6B158E #8E6B15 #158E6B
tetradic
#6B158E #8E2F15 #388E15 #15748E
square
#6B158E #8E2F15 #388E15 #15748E
split-complementary
#6B158E #748E15 #158E2F
monochromatic
#1B0523 #430D59 #6B158E #931DC3 #B23BE2

Accessibility & contrast

On white

9.89
#6B158E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#6B158E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B158E
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B158E#FFFFFF#000000##FFFFFF
##6B158E1.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F91
Deuteranopia (green-blind)
#00458C
Tritanopia (blue-blind)
#673554
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #6b158e;
/* rgb */ color: rgb(107, 21, 142);
/* oklch */ color: oklch(40.7% 0.185 313.1);
Tailwind
colors: {
  custom: {
    50: '#9a60b0',
    500: '#6b158e',
    950: '#000000',
  },
}
SCSS
$custom: #6b158e;
$custom-light: #9a60b0;
$custom-dark: #000000;
JSON
{
  "hex": "#6b158e",
  "rgb": {
    "r": 107,
    "g": 21,
    "b": 142
  },
  "hsl": {
    "h": 282.645,
    "s": 74.233,
    "l": 31.961
  },
  "oklch": {
    "l": 0.40741,
    "c": 0.18462,
    "h": 313.1
  },
  "luminance": 0.05615
}

Semantic roles & 50–950 ramp

primary
#6B158E
secondary
#63C23D
accent
#F1376D
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0F0511
muted
#7E7A80

Preview Lab

Preview with #6B158E

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

Preview Lab → · Contrast checker → · Palette generator →

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