#6C158E#6C158E

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

Color values

HEX#6C158E
RGBrgb(108, 21, 142)
HSLhsl(283, 74%, 32%)
HSVhsv(283, 85%, 56%)
CMYKcmyk(23.9%, 85.2%, 0%, 44.3%)
CIE-LABlab(28.58, 53.93, -47.34)
CIE-LCHlch(28.58, 71.76, 318.72°)
OKLaboklab(40.89% 0.1274 -0.134)
OKLCHoklch(40.89% 0.185 313.5)
XYZxyz(11.3341, 5.6779, 26.0848)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C158E #378E15
analogous
#2F158E #6C158E #8E1574
triadic
#6C158E #8E6C15 #158E6C
tetradic
#6C158E #8E2F15 #378E15 #15748E
square
#6C158E #8E2F15 #378E15 #15748E
split-complementary
#6C158E #748E15 #158E2F
monochromatic
#1B0523 #430D59 #6C158E #951DC3 #B33BE2

Accessibility & contrast

On white

9.83
#6C158E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6C158E
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C158E#FFFFFF#000000##FFFFFF
##6C158E1.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F91
Deuteranopia (green-blind)
#00458C
Tritanopia (blue-blind)
#683554
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #6c158e;
/* rgb */ color: rgb(108, 21, 142);
/* oklch */ color: oklch(40.9% 0.185 313.5);
Tailwind
colors: {
  custom: {
    50: '#9b60b0',
    500: '#6c158e',
    950: '#000000',
  },
}
SCSS
$custom: #6c158e;
$custom-light: #9b60b0;
$custom-dark: #000000;
JSON
{
  "hex": "#6c158e",
  "rgb": {
    "r": 108,
    "g": 21,
    "b": 142
  },
  "hsl": {
    "h": 283.14,
    "s": 74.233,
    "l": 31.961
  },
  "oklch": {
    "l": 0.40888,
    "c": 0.18493,
    "h": 313.5
  },
  "luminance": 0.05677
}

Semantic roles & 50–950 ramp

primary
#6C158E
secondary
#62C23D
accent
#F1376B
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0F0510
muted
#7E7A7F

Preview Lab

Preview with #6C158E

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

Preview Lab → · Contrast checker → · Palette generator →

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