#6B158A#6B158A

#6B158A is a dark, vivid purple. Relative luminance 0.055; OKLCH L 40.4% C 0.181 H 314.5°. Best body text is #FFFFFF at 10.00:1 contrast (WCAG AA passes).

Color values

HEX#6B158A
RGBrgb(107, 21, 138)
HSLhsl(284, 74%, 31%)
HSVhsv(284, 85%, 54%)
CMYKcmyk(22.5%, 84.8%, 0%, 45.9%)
CIE-LABlab(28.11, 52.94, -45.64)
CIE-LCHlch(28.11, 69.90, 319.23°)
OKLaboklab(40.42% 0.127 -0.1291)
OKLCHoklch(40.42% 0.181 314.5)
XYZxyz(10.9182, 5.4975, 24.5258)
Luminance0.0550 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B158A #348A15
analogous
#31158A #6B158A #8A156E
triadic
#6B158A #8A6B15 #158A6B
tetradic
#6B158A #8A3115 #348A15 #156E8A
square
#6B158A #8A3115 #348A15 #156E8A
split-complementary
#6B158A #6E8A15 #158A31
monochromatic
#190520 #420D55 #6B158A #941DBF #B439E1

Accessibility & contrast

On white

10.00
#6B158A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#6B158A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B158A
10.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B158A#FFFFFF#000000##FFFFFF
##6B158A1.0010.002.1010.00
#FFFFFF10.001.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8D
Deuteranopia (green-blind)
#084488
Tritanopia (blue-blind)
#683351
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #6b158a;
/* rgb */ color: rgb(107, 21, 138);
/* oklch */ color: oklch(40.4% 0.181 314.5);
Tailwind
colors: {
  custom: {
    50: '#9a60ad',
    500: '#6b158a',
    950: '#000000',
  },
}
SCSS
$custom: #6b158a;
$custom-light: #9a60ad;
$custom-dark: #000000;
JSON
{
  "hex": "#6b158a",
  "rgb": {
    "r": 107,
    "g": 21,
    "b": 138
  },
  "hsl": {
    "h": 284.103,
    "s": 73.585,
    "l": 31.176
  },
  "oklch": {
    "l": 0.40424,
    "c": 0.18109,
    "h": 314.5
  },
  "luminance": 0.05497
}

Semantic roles & 50–950 ramp

primary
#6B158A
secondary
#5FBE3D
accent
#F03868
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0510
muted
#7E7A7F

Preview Lab

Preview with #6B158A

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

Preview Lab → · Contrast checker → · Palette generator →

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