#6B156E#6B156E

#6B156E is a dark, vivid purple. Relative luminance 0.048; OKLCH L 38.4% C 0.157 H 326.6°. Best body text is #FFFFFF at 10.73:1 contrast (WCAG AA passes).

Color values

HEX#6B156E
RGBrgb(107, 21, 110)
HSLhsl(298, 68%, 26%)
HSVhsv(298, 81%, 43%)
CMYKcmyk(2.7%, 80.9%, 0%, 56.9%)
CIE-LABlab(26.12, 47.55, -31.10)
CIE-LCHlch(26.12, 56.82, 326.81°)
OKLaboklab(38.4% 0.1311 -0.0865)
OKLCHoklch(38.4% 0.157 326.6)
XYZxyz(9.1459, 4.7886, 15.1914)
Luminance0.0479 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B156E #186E15
analogous
#3F156E #6B156E #6E1544
triadic
#6B156E #6E6B15 #156E6B
tetradic
#6B156E #6E3F15 #186E15 #15446E
square
#6B156E #6E3F15 #186E15 #15446E
split-complementary
#6B156E #446E15 #156E3F
monochromatic
#19051A #390B3B #6B156E #9D1FA1 #CF29D5

Accessibility & contrast

On white

10.73
#6B156E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#6B156E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B156E
10.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B156E#FFFFFF#000000##FFFFFF
##6B156E1.0010.731.9610.73
#FFFFFF10.731.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003770
Deuteranopia (green-blind)
#2C416C
Tritanopia (blue-blind)
#6E2541
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #6b156e;
/* rgb */ color: rgb(107, 21, 110);
/* oklch */ color: oklch(38.4% 0.157 326.6);
Tailwind
colors: {
  custom: {
    50: '#995e98',
    500: '#6b156e',
    950: '#000000',
  },
}
SCSS
$custom: #6b156e;
$custom-light: #995e98;
$custom-dark: #000000;
JSON
{
  "hex": "#6b156e",
  "rgb": {
    "r": 107,
    "g": 21,
    "b": 110
  },
  "hsl": {
    "h": 297.978,
    "s": 67.939,
    "l": 25.686
  },
  "oklch": {
    "l": 0.38396,
    "c": 0.15708,
    "h": 326.6
  },
  "luminance": 0.04788
}

Semantic roles & 50–950 ramp

primary
#6B156E
secondary
#3EA43A
accent
#EB3D43
background
#F9F5F9
surface
#F2EAF2
border
#CCC6CC
text
#0E050D
muted
#7E797E

Preview Lab

Preview with #6B156E

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

Preview Lab → · Contrast checker → · Palette generator →

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