#6D158D#6D158D

#6D158D is a dark, vivid purple. Relative luminance 0.057; OKLCH L 41.0% C 0.184 H 314.4°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#6D158D
RGBrgb(109, 21, 141)
HSLhsl(284, 74%, 32%)
HSVhsv(284, 85%, 55%)
CMYKcmyk(22.7%, 85.1%, 0%, 44.7%)
CIE-LABlab(28.67, 53.90, -46.58)
CIE-LCHlch(28.67, 71.24, 319.17°)
OKLaboklab(40.96% 0.129 -0.1317)
OKLCHoklch(40.96% 0.184 314.4)
XYZxyz(11.3817, 5.7110, 25.6969)
Luminance0.0571 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D158D #358D15
analogous
#31158D #6D158D #8D1571
triadic
#6D158D #8D6D15 #158D6D
tetradic
#6D158D #8D3115 #358D15 #15718D
square
#6D158D #8D3115 #358D15 #15718D
split-complementary
#6D158D #718D15 #158D31
monochromatic
#1B0522 #440D58 #6D158D #961DC2 #B53BE2

Accessibility & contrast

On white

9.80
#6D158D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#6D158D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6D158D
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D158D#FFFFFF#000000##FFFFFF
##6D158D1.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F90
Deuteranopia (green-blind)
#06468B
Tritanopia (blue-blind)
#6A3453
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #6d158d;
/* rgb */ color: rgb(109, 21, 141);
/* oklch */ color: oklch(41.0% 0.184 314.4);
Tailwind
colors: {
  custom: {
    50: '#9b60af',
    500: '#6d158d',
    950: '#000000',
  },
}
SCSS
$custom: #6d158d;
$custom-light: #9b60af;
$custom-dark: #000000;
JSON
{
  "hex": "#6d158d",
  "rgb": {
    "r": 109,
    "g": 21,
    "b": 141
  },
  "hsl": {
    "h": 284,
    "s": 74.074,
    "l": 31.765
  },
  "oklch": {
    "l": 0.40956,
    "c": 0.18438,
    "h": 314.4
  },
  "luminance": 0.05711
}

Semantic roles & 50–950 ramp

primary
#6D158D
secondary
#60C13D
accent
#F13769
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0F0510
muted
#7E7A7F

Preview Lab

Preview with #6D158D

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

Preview Lab → · Contrast checker → · Palette generator →

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