#6A156C#6A156C

#6A156C is a dark, vivid purple. Relative luminance 0.047; OKLCH L 38.1% C 0.155 H 327.1°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#6A156C
RGBrgb(106, 21, 108)
HSLhsl(299, 67%, 25%)
HSVhsv(299, 81%, 42%)
CMYKcmyk(1.9%, 80.6%, 0%, 57.6%)
CIE-LABlab(25.81, 46.97, -30.32)
CIE-LCHlch(25.81, 55.91, 327.16°)
OKLaboklab(38.1% 0.1301 -0.0842)
OKLCHoklch(38.1% 0.155 327.1)
XYZxyz(8.9187, 4.6839, 14.6188)
Luminance0.0468 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A156C #176C15
analogous
#3F156C #6A156C #6C1542
triadic
#6A156C #6C6A15 #156C6A
tetradic
#6A156C #6C3F15 #176C15 #15426C
square
#6A156C #6C3F15 #176C15 #15426C
split-complementary
#6A156C #426C15 #156C3F
monochromatic
#19051A #380B39 #6A156C #9C1F9F #CF29D2

Accessibility & contrast

On white

10.84
#6A156C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#6A156C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A156C
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A156C#FFFFFF#000000##FFFFFF
##6A156C1.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00366E
Deuteranopia (green-blind)
#2C416A
Tritanopia (blue-blind)
#6D2440
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #6a156c;
/* rgb */ color: rgb(106, 21, 108);
/* oklch */ color: oklch(38.1% 0.155 327.1);
Tailwind
colors: {
  custom: {
    50: '#985e96',
    500: '#6a156c',
    950: '#000000',
  },
}
SCSS
$custom: #6a156c;
$custom-light: #985e96;
$custom-dark: #000000;
JSON
{
  "hex": "#6a156c",
  "rgb": {
    "r": 106,
    "g": 21,
    "b": 108
  },
  "hsl": {
    "h": 298.621,
    "s": 67.442,
    "l": 25.294
  },
  "oklch": {
    "l": 0.381,
    "c": 0.15494,
    "h": 327.1
  },
  "luminance": 0.04683
}

Semantic roles & 50–950 ramp

primary
#6A156C
secondary
#3DA33A
accent
#EA3D41
background
#F9F5F9
surface
#F2EAF2
border
#CCC6CC
text
#0E050D
muted
#7E797E

Preview Lab

Preview with #6A156C

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

Preview Lab → · Contrast checker → · Palette generator →

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