#6D158E#6D158E

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

Color values

HEX#6D158E
RGBrgb(109, 21, 142)
HSLhsl(284, 74%, 32%)
HSVhsv(284, 85%, 56%)
CMYKcmyk(23.2%, 85.2%, 0%, 44.3%)
CIE-LABlab(28.75, 54.10, -47.07)
CIE-LCHlch(28.75, 71.71, 318.98°)
OKLaboklab(41.04% 0.1288 -0.1332)
OKLCHoklch(41.04% 0.185 314)
XYZxyz(11.4565, 5.7409, 26.0906)
Luminance0.0574 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D158E #368E15
analogous
#30158E #6D158E #8E1573
triadic
#6D158E #8E6D15 #158E6D
tetradic
#6D158E #8E3015 #368E15 #15738E
square
#6D158E #8E3015 #368E15 #15738E
split-complementary
#6D158E #738E15 #158E30
monochromatic
#1B0523 #440D59 #6D158E #961DC3 #B53BE2

Accessibility & contrast

On white

9.78
#6D158E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#6D158E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6D158E
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D158E#FFFFFF#000000##FFFFFF
##6D158E1.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F91
Deuteranopia (green-blind)
#03468C
Tritanopia (blue-blind)
#6A3454
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #6d158e;
/* rgb */ color: rgb(109, 21, 142);
/* oklch */ color: oklch(41.0% 0.185 314.0);
Tailwind
colors: {
  custom: {
    50: '#9b60b0',
    500: '#6d158e',
    950: '#000000',
  },
}
SCSS
$custom: #6d158e;
$custom-light: #9b60b0;
$custom-dark: #000000;
JSON
{
  "hex": "#6d158e",
  "rgb": {
    "r": 109,
    "g": 21,
    "b": 142
  },
  "hsl": {
    "h": 283.636,
    "s": 74.233,
    "l": 31.961
  },
  "oklch": {
    "l": 0.41035,
    "c": 0.18525,
    "h": 314
  },
  "luminance": 0.05741
}

Semantic roles & 50–950 ramp

primary
#6D158E
secondary
#61C23D
accent
#F1376A
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0F0510
muted
#7E7A7F

Preview Lab

Preview with #6D158E

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

Preview Lab → · Contrast checker → · Palette generator →

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