#6C158F#6C158F

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

Color values

HEX#6C158F
RGBrgb(108, 21, 143)
HSLhsl(283, 74%, 32%)
HSVhsv(283, 85%, 56%)
CMYKcmyk(24.5%, 85.3%, 0%, 43.9%)
CIE-LABlab(28.66, 54.13, -47.84)
CIE-LCHlch(28.66, 72.24, 318.53°)
OKLaboklab(40.97% 0.1272 -0.1355)
OKLCHoklch(40.97% 0.186 313.2)
XYZxyz(11.4095, 5.7080, 26.4820)
Luminance0.0571 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C158F #388F15
analogous
#2F158F #6C158F #8F1575
triadic
#6C158F #8F6C15 #158F6C
tetradic
#6C158F #8F2F15 #388F15 #15758F
square
#6C158F #8F2F15 #388F15 #15758F
split-complementary
#6C158F #758F15 #158F2F
monochromatic
#1B0524 #440D5A #6C158F #941DC4 #B33CE2

Accessibility & contrast

On white

9.81
#6C158F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6C158F
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C158F#FFFFFF#000000##FFFFFF
##6C158F1.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F92
Deuteranopia (green-blind)
#00458D
Tritanopia (blue-blind)
#683554
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #6c158f;
/* rgb */ color: rgb(108, 21, 143);
/* oklch */ color: oklch(41.0% 0.186 313.2);
Tailwind
colors: {
  custom: {
    50: '#9b60b1',
    500: '#6c158f',
    950: '#000000',
  },
}
SCSS
$custom: #6c158f;
$custom-light: #9b60b1;
$custom-dark: #000000;
JSON
{
  "hex": "#6c158f",
  "rgb": {
    "r": 108,
    "g": 21,
    "b": 143
  },
  "hsl": {
    "h": 282.787,
    "s": 74.39,
    "l": 32.157
  },
  "oklch": {
    "l": 0.40967,
    "c": 0.18581,
    "h": 313.2
  },
  "luminance": 0.05708
}

Semantic roles & 50–950 ramp

primary
#6C158F
secondary
#64C23E
accent
#F1376C
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0511
muted
#7E7A80

Preview Lab

Preview with #6C158F

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

Preview Lab → · Contrast checker → · Palette generator →

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