#6D158A#6D158A

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

Color values

HEX#6D158A
RGBrgb(109, 21, 138)
HSLhsl(285, 74%, 31%)
HSVhsv(285, 85%, 54%)
CMYKcmyk(21%, 84.8%, 0%, 45.9%)
CIE-LABlab(28.44, 53.29, -45.09)
CIE-LCHlch(28.44, 69.81, 319.77°)
OKLaboklab(40.72% 0.1297 -0.1274)
OKLCHoklch(40.72% 0.182 315.5)
XYZxyz(11.1615, 5.6230, 24.5372)
Luminance0.0562 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D158A #328A15
analogous
#32158A #6D158A #8A156C
triadic
#6D158A #8A6D15 #158A6D
tetradic
#6D158A #8A3215 #328A15 #156C8A
square
#6D158A #8A3215 #328A15 #156C8A
split-complementary
#6D158A #6C8A15 #158A32
monochromatic
#190520 #430D55 #6D158A #971DBF #B739E1

Accessibility & contrast

On white

9.88
#6D158A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6D158A
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D158A#FFFFFF#000000##FFFFFF
##6D158A1.009.882.129.88
#FFFFFF9.881.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8D
Deuteranopia (green-blind)
#0F4588
Tritanopia (blue-blind)
#6B3351
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #6d158a;
/* rgb */ color: rgb(109, 21, 138);
/* oklch */ color: oklch(40.7% 0.182 315.5);
Tailwind
colors: {
  custom: {
    50: '#9b60ad',
    500: '#6d158a',
    950: '#000000',
  },
}
SCSS
$custom: #6d158a;
$custom-light: #9b60ad;
$custom-dark: #000000;
JSON
{
  "hex": "#6d158a",
  "rgb": {
    "r": 109,
    "g": 21,
    "b": 138
  },
  "hsl": {
    "h": 285.128,
    "s": 73.585,
    "l": 31.176
  },
  "oklch": {
    "l": 0.40723,
    "c": 0.18176,
    "h": 315.5
  },
  "luminance": 0.05623
}

Semantic roles & 50–950 ramp

primary
#6D158A
secondary
#5DBE3D
accent
#F03865
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0F0510
muted
#7E7A7F

Preview Lab

Preview with #6D158A

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

Preview Lab → · Contrast checker → · Palette generator →

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