#6D158F#6D158F

#6D158F is a dark, vivid purple. Relative luminance 0.058; OKLCH L 41.1% C 0.186 H 313.7°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#6D158F
RGBrgb(109, 21, 143)
HSLhsl(283, 74%, 32%)
HSVhsv(283, 85%, 56%)
CMYKcmyk(23.8%, 85.3%, 0%, 43.9%)
CIE-LABlab(28.83, 54.31, -47.56)
CIE-LCHlch(28.83, 72.19, 318.79°)
OKLaboklab(41.11% 0.1285 -0.1346)
OKLCHoklch(41.11% 0.186 313.7)
XYZxyz(11.5319, 5.7711, 26.4877)
Luminance0.0577 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D158F #378F15
analogous
#30158F #6D158F #8F1574
triadic
#6D158F #8F6D15 #158F6D
tetradic
#6D158F #8F3015 #378F15 #15748F
square
#6D158F #8F3015 #378F15 #15748F
split-complementary
#6D158F #748F15 #158F30
monochromatic
#1C0524 #440D5A #6D158F #961DC4 #B43CE2

Accessibility & contrast

On white

9.75
#6D158F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6D158F
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D158F#FFFFFF#000000##FFFFFF
##6D158F1.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004092
Deuteranopia (green-blind)
#00468D
Tritanopia (blue-blind)
#693554
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #6d158f;
/* rgb */ color: rgb(109, 21, 143);
/* oklch */ color: oklch(41.1% 0.186 313.7);
Tailwind
colors: {
  custom: {
    50: '#9b60b1',
    500: '#6d158f',
    950: '#000000',
  },
}
SCSS
$custom: #6d158f;
$custom-light: #9b60b1;
$custom-dark: #000000;
JSON
{
  "hex": "#6d158f",
  "rgb": {
    "r": 109,
    "g": 21,
    "b": 143
  },
  "hsl": {
    "h": 283.279,
    "s": 74.39,
    "l": 32.157
  },
  "oklch": {
    "l": 0.41114,
    "c": 0.18613,
    "h": 313.7
  },
  "luminance": 0.05771
}

Semantic roles & 50–950 ramp

primary
#6D158F
secondary
#63C23E
accent
#F1376B
background
#FAF6FB
surface
#F3EBF6
border
#CDC6D0
text
#0F0511
muted
#7F7A80

Preview Lab

Preview with #6D158F

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

Preview Lab → · Contrast checker → · Palette generator →

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