#6A158A#6A158A

#6A158A is a dark, vivid purple. Relative luminance 0.054; OKLCH L 40.3% C 0.181 H 314.0°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#6A158A
RGBrgb(106, 21, 138)
HSLhsl(284, 74%, 31%)
HSVhsv(284, 85%, 54%)
CMYKcmyk(23.2%, 84.8%, 0%, 45.9%)
CIE-LABlab(27.94, 52.76, -45.92)
CIE-LCHlch(27.94, 69.94, 318.97°)
OKLaboklab(40.28% 0.1257 -0.1299)
OKLCHoklch(40.28% 0.181 314)
XYZxyz(10.7987, 5.4359, 24.5202)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A158A #358A15
analogous
#2F158A #6A158A #8A156F
triadic
#6A158A #8A6A15 #158A6A
tetradic
#6A158A #8A2F15 #358A15 #156F8A
square
#6A158A #8A2F15 #358A15 #156F8A
split-complementary
#6A158A #6F8A15 #158A2F
monochromatic
#180520 #410D55 #6A158A #931DBF #B339E1

Accessibility & contrast

On white

10.06
#6A158A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#6A158A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A158A
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A158A#FFFFFF#000000##FFFFFF
##6A158A1.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8D
Deuteranopia (green-blind)
#054488
Tritanopia (blue-blind)
#673351
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #6a158a;
/* rgb */ color: rgb(106, 21, 138);
/* oklch */ color: oklch(40.3% 0.181 314.0);
Tailwind
colors: {
  custom: {
    50: '#995fad',
    500: '#6a158a',
    950: '#000000',
  },
}
SCSS
$custom: #6a158a;
$custom-light: #995fad;
$custom-dark: #000000;
JSON
{
  "hex": "#6a158a",
  "rgb": {
    "r": 106,
    "g": 21,
    "b": 138
  },
  "hsl": {
    "h": 283.59,
    "s": 73.585,
    "l": 31.176
  },
  "oklch": {
    "l": 0.40275,
    "c": 0.18076,
    "h": 314
  },
  "luminance": 0.05435
}

Semantic roles & 50–950 ramp

primary
#6A158A
secondary
#60BE3D
accent
#F0386A
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0510
muted
#7E7A7F

Preview Lab

Preview with #6A158A

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

Preview Lab → · Contrast checker → · Palette generator →

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