#6A158D#6A158D

#6A158D is a dark, vivid purple. Relative luminance 0.055; OKLCH L 40.5% C 0.183 H 312.9°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#6A158D
RGBrgb(106, 21, 141)
HSLhsl(283, 74%, 32%)
HSVhsv(283, 85%, 55%)
CMYKcmyk(24.8%, 85.1%, 0%, 44.7%)
CIE-LABlab(28.18, 53.38, -47.40)
CIE-LCHlch(28.18, 71.39, 318.40°)
OKLaboklab(40.51% 0.125 -0.1343)
OKLCHoklch(40.51% 0.183 312.9)
XYZxyz(11.0189, 5.5239, 25.6799)
Luminance0.0552 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A158D #388D15
analogous
#2E158D #6A158D #8D1574
triadic
#6A158D #8D6A15 #158D6A
tetradic
#6A158D #8D2E15 #388D15 #15748D
square
#6A158D #8D2E15 #388D15 #15748D
split-complementary
#6A158D #748D15 #158D2E
monochromatic
#1A0522 #420D58 #6A158D #921DC2 #B13BE2

Accessibility & contrast

On white

9.98
#6A158D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#6A158D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A158D
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A158D#FFFFFF#000000##FFFFFF
##6A158D1.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E90
Deuteranopia (green-blind)
#00448B
Tritanopia (blue-blind)
#663553
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #6a158d;
/* rgb */ color: rgb(106, 21, 141);
/* oklch */ color: oklch(40.5% 0.183 312.9);
Tailwind
colors: {
  custom: {
    50: '#9960af',
    500: '#6a158d',
    950: '#000000',
  },
}
SCSS
$custom: #6a158d;
$custom-light: #9960af;
$custom-dark: #000000;
JSON
{
  "hex": "#6a158d",
  "rgb": {
    "r": 106,
    "g": 21,
    "b": 141
  },
  "hsl": {
    "h": 282.5,
    "s": 74.074,
    "l": 31.765
  },
  "oklch": {
    "l": 0.40514,
    "c": 0.18341,
    "h": 312.9
  },
  "luminance": 0.05524
}

Semantic roles & 50–950 ramp

primary
#6A158D
secondary
#63C13D
accent
#F1376D
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0E0510
muted
#7E7A7F

Preview Lab

Preview with #6A158D

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

Preview Lab → · Contrast checker → · Palette generator →

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