#6B187E#6B187E

#6B187E is a dark, vivid purple. Relative luminance 0.053; OKLCH L 39.7% C 0.168 H 319.2°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).

Color values

HEX#6B187E
RGBrgb(107, 24, 126)
HSLhsl(289, 68%, 29%)
HSVhsv(289, 81%, 49%)
CMYKcmyk(15.1%, 81%, 0%, 50.6%)
CIE-LABlab(27.53, 49.61, -39.05)
CIE-LCHlch(27.53, 63.13, 321.80°)
OKLaboklab(39.74% 0.1269 -0.1097)
OKLCHoklch(39.74% 0.168 319.2)
XYZxyz(10.1554, 5.2859, 20.2200)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B187E #2B7E18
analogous
#38187E #6B187E #7E185E
triadic
#6B187E #7E6B18 #187E6B
tetradic
#6B187E #7E3818 #2B7E18 #185E7E
square
#6B187E #7E3818 #2B7E18 #185E7E
split-complementary
#6B187E #5E7E18 #187E38
monochromatic
#16051A #3F0E4B #6B187E #9722B1 #BB37D9

Accessibility & contrast

On white

10.21
#6B187E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#6B187E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B187E
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B187E#FFFFFF#000000##FFFFFF
##6B187E1.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C81
Deuteranopia (green-blind)
#20447C
Tritanopia (blue-blind)
#6B2E4B
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #6b187e;
/* rgb */ color: rgb(107, 24, 126);
/* oklch */ color: oklch(39.7% 0.168 319.2);
Tailwind
colors: {
  custom: {
    50: '#9960a4',
    500: '#6b187e',
    950: '#000000',
  },
}
SCSS
$custom: #6b187e;
$custom-light: #9960a4;
$custom-dark: #000000;
JSON
{
  "hex": "#6b187e",
  "rgb": {
    "r": 107,
    "g": 24,
    "b": 126
  },
  "hsl": {
    "h": 288.824,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.3974,
    "c": 0.16779,
    "h": 319.2
  },
  "luminance": 0.05285
}

Semantic roles & 50–950 ramp

primary
#6B187E
secondary
#55B23F
accent
#EB3D5D
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E050F
muted
#7E7A7F

Preview Lab

Preview with #6B187E

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

Preview Lab → · Contrast checker → · Palette generator →

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