#6A158F#6A158F

#6A158F is a dark, vivid purple. Relative luminance 0.056; OKLCH L 40.7% C 0.185 H 312.2°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#6A158F
RGBrgb(106, 21, 143)
HSLhsl(282, 74%, 32%)
HSVhsv(282, 85%, 56%)
CMYKcmyk(25.9%, 85.3%, 0%, 43.9%)
CIE-LABlab(28.34, 53.79, -48.38)
CIE-LCHlch(28.34, 72.35, 318.03°)
OKLaboklab(40.67% 0.1244 -0.1371)
OKLCHoklch(40.67% 0.185 312.2)
XYZxyz(11.1690, 5.5840, 26.4707)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A158F #3A8F15
analogous
#2D158F #6A158F #8F1577
triadic
#6A158F #8F6A15 #158F6A
tetradic
#6A158F #8F2D15 #3A8F15 #15778F
square
#6A158F #8F2D15 #3A8F15 #15778F
split-complementary
#6A158F #778F15 #158F2D
monochromatic
#1B0524 #420D5A #6A158F #921DC4 #B03CE2

Accessibility & contrast

On white

9.92
#6A158F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#6A158F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A158F
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A158F#FFFFFF#000000##FFFFFF
##6A158F1.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F92
Deuteranopia (green-blind)
#00448D
Tritanopia (blue-blind)
#653554
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #6a158f;
/* rgb */ color: rgb(106, 21, 143);
/* oklch */ color: oklch(40.7% 0.185 312.2);
Tailwind
colors: {
  custom: {
    50: '#9960b1',
    500: '#6a158f',
    950: '#000000',
  },
}
SCSS
$custom: #6a158f;
$custom-light: #9960b1;
$custom-dark: #000000;
JSON
{
  "hex": "#6a158f",
  "rgb": {
    "r": 106,
    "g": 21,
    "b": 143
  },
  "hsl": {
    "h": 281.803,
    "s": 74.39,
    "l": 32.157
  },
  "oklch": {
    "l": 0.40675,
    "c": 0.18519,
    "h": 312.2
  },
  "luminance": 0.05584
}

Semantic roles & 50–950 ramp

primary
#6A158F
secondary
#66C23E
accent
#F1376F
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0511
muted
#7E7A80

Preview Lab

Preview with #6A158F

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

Preview Lab → · Contrast checker → · Palette generator →

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