#6B187A#6B187A

#6B187A is a dark, vivid purple. Relative luminance 0.052; OKLCH L 39.5% C 0.164 H 320.9°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#6B187A
RGBrgb(107, 24, 122)
HSLhsl(291, 67%, 29%)
HSVhsv(291, 80%, 48%)
CMYKcmyk(12.3%, 80.3%, 0%, 52.2%)
CIE-LABlab(27.25, 48.83, -36.96)
CIE-LCHlch(27.25, 61.24, 322.87°)
OKLaboklab(39.45% 0.1275 -0.1036)
OKLCHoklch(39.45% 0.164 320.9)
XYZxyz(9.9025, 5.1847, 18.8877)
Luminance0.0518 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B187A #277A18
analogous
#3A187A #6B187A #7A1858
triadic
#6B187A #7A6B18 #187A6B
tetradic
#6B187A #7A3A18 #277A18 #18587A
square
#6B187A #7A3A18 #277A18 #18587A
split-complementary
#6B187A #587A18 #187A3A
monochromatic
#16051A #3E0E47 #6B187A #9822AD #BE35D7

Accessibility & contrast

On white

10.31
#6B187A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#6B187A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B187A
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B187A#FFFFFF#000000##FFFFFF
##6B187A1.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7D
Deuteranopia (green-blind)
#244378
Tritanopia (blue-blind)
#6C2C49
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #6b187a;
/* rgb */ color: rgb(107, 24, 122);
/* oklch */ color: oklch(39.5% 0.164 320.9);
Tailwind
colors: {
  custom: {
    50: '#9960a1',
    500: '#6b187a',
    950: '#000000',
  },
}
SCSS
$custom: #6b187a;
$custom-light: #9960a1;
$custom-dark: #000000;
JSON
{
  "hex": "#6b187a",
  "rgb": {
    "r": 107,
    "g": 24,
    "b": 122
  },
  "hsl": {
    "h": 290.816,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.39453,
    "c": 0.16427,
    "h": 320.9
  },
  "luminance": 0.05184
}

Semantic roles & 50–950 ramp

primary
#6B187A
secondary
#50AF3F
accent
#EA3E58
background
#F9F5FA
surface
#F2EAF3
border
#CCC6CD
text
#0E050F
muted
#7E797F

Preview Lab

Preview with #6B187A

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

Preview Lab → · Contrast checker → · Palette generator →

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