#6B187F#6B187F

#6B187F is a dark, vivid purple. Relative luminance 0.053; OKLCH L 39.8% C 0.169 H 318.7°. Best body text is #FFFFFF at 10.18:1 contrast (WCAG AA passes).

Color values

HEX#6B187F
RGBrgb(107, 24, 127)
HSLhsl(288, 68%, 30%)
HSVhsv(288, 81%, 50%)
CMYKcmyk(15.7%, 81.1%, 0%, 50.2%)
CIE-LABlab(27.61, 49.81, -39.56)
CIE-LCHlch(27.61, 63.61, 321.54°)
OKLaboklab(39.81% 0.1268 -0.1112)
OKLCHoklch(39.81% 0.169 318.7)
XYZxyz(10.2203, 5.3119, 20.5615)
Luminance0.0531 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B187F #2C7F18
analogous
#38187F #6B187F #7F185F
triadic
#6B187F #7F6B18 #187F6B
tetradic
#6B187F #7F3818 #2C7F18 #185F7F
square
#6B187F #7F3818 #2C7F18 #185F7F
split-complementary
#6B187F #5F7F18 #187F38
monochromatic
#16051A #400E4C #6B187F #9622B2 #BA38D9

Accessibility & contrast

On white

10.18
#6B187F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6B187F
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B187F#FFFFFF#000000##FFFFFF
##6B187F1.0010.182.0610.18
#FFFFFF10.181.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C82
Deuteranopia (green-blind)
#1F447D
Tritanopia (blue-blind)
#6B2F4C
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #6b187f;
/* rgb */ color: rgb(107, 24, 127);
/* oklch */ color: oklch(39.8% 0.169 318.7);
Tailwind
colors: {
  custom: {
    50: '#9960a5',
    500: '#6b187f',
    950: '#000000',
  },
}
SCSS
$custom: #6b187f;
$custom-light: #9960a5;
$custom-dark: #000000;
JSON
{
  "hex": "#6b187f",
  "rgb": {
    "r": 107,
    "g": 24,
    "b": 127
  },
  "hsl": {
    "h": 288.35,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.39813,
    "c": 0.16866,
    "h": 318.7
  },
  "luminance": 0.05311
}

Semantic roles & 50–950 ramp

primary
#6B187F
secondary
#56B33F
accent
#EB3D5F
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E050F
muted
#7E7A7F

Preview Lab

Preview with #6B187F

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

Preview Lab → · Contrast checker → · Palette generator →

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