#6A158E#6A158E

#6A158E is a dark, vivid purple. Relative luminance 0.056; OKLCH L 40.6% C 0.184 H 312.6°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#6A158E
RGBrgb(106, 21, 142)
HSLhsl(282, 74%, 32%)
HSVhsv(282, 85%, 56%)
CMYKcmyk(25.4%, 85.2%, 0%, 44.3%)
CIE-LABlab(28.26, 53.59, -47.89)
CIE-LCHlch(28.26, 71.87, 318.21°)
OKLaboklab(40.59% 0.1247 -0.1357)
OKLCHoklch(40.59% 0.184 312.6)
XYZxyz(11.0936, 5.5538, 26.0736)
Luminance0.0555 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A158E #398E15
analogous
#2E158E #6A158E #8E1576
triadic
#6A158E #8E6A15 #158E6A
tetradic
#6A158E #8E2E15 #398E15 #15768E
square
#6A158E #8E2E15 #398E15 #15768E
split-complementary
#6A158E #768E15 #158E2E
monochromatic
#1A0523 #420D59 #6A158E #921DC3 #B03BE2

Accessibility & contrast

On white

9.95
#6A158E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#6A158E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A158E
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A158E#FFFFFF#000000##FFFFFF
##6A158E1.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6a158e;
/* rgb */ color: rgb(106, 21, 142);
/* oklch */ color: oklch(40.6% 0.184 312.6);
Tailwind
colors: {
  custom: {
    50: '#9960b0',
    500: '#6a158e',
    950: '#000000',
  },
}
SCSS
$custom: #6a158e;
$custom-light: #9960b0;
$custom-dark: #000000;
JSON
{
  "hex": "#6a158e",
  "rgb": {
    "r": 106,
    "g": 21,
    "b": 142
  },
  "hsl": {
    "h": 282.149,
    "s": 74.233,
    "l": 31.961
  },
  "oklch": {
    "l": 0.40594,
    "c": 0.1843,
    "h": 312.6
  },
  "luminance": 0.05553
}

Semantic roles & 50–950 ramp

primary
#6A158E
secondary
#65C23D
accent
#F1376E
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0E0511
muted
#7E7A80

Preview Lab

Preview with #6A158E

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

Preview Lab → · Contrast checker → · Palette generator →

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