#6B2187#6B2187

#6B2187 is a dark, vivid purple. Relative luminance 0.060; OKLCH L 41.2% C 0.166 H 314.8°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#6B2187
RGBrgb(107, 33, 135)
HSLhsl(284, 61%, 33%)
HSVhsv(284, 76%, 53%)
CMYKcmyk(20.7%, 75.6%, 0%, 47.1%)
CIE-LABlab(29.32, 48.17, -41.81)
CIE-LCHlch(29.32, 63.79, 319.04°)
OKLaboklab(41.21% 0.1172 -0.1179)
OKLCHoklch(41.21% 0.166 314.8)
XYZxyz(10.9797, 5.9632, 23.4896)
Luminance0.0596 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B2187 #3D8721
analogous
#382187 #6B2187 #872170
triadic
#6B2187 #876B21 #21876B
tetradic
#6B2187 #873821 #3D8721 #217087
square
#6B2187 #873821 #3D8721 #217087
split-complementary
#6B2187 #708721 #218738
monochromatic
#1D0925 #441556 #6B2187 #922DB8 #AF4FD4

Accessibility & contrast

On white

9.58
#6B2187 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#6B2187 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B2187
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B2187#FFFFFF#000000##FFFFFF
##6B21871.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418A
Deuteranopia (green-blind)
#1C4785
Tritanopia (blue-blind)
#693752
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #6b2187;
/* rgb */ color: rgb(107, 33, 135);
/* oklch */ color: oklch(41.2% 0.166 314.8);
Tailwind
colors: {
  custom: {
    50: '#9964ab',
    500: '#6b2187',
    950: '#000000',
  },
}
SCSS
$custom: #6b2187;
$custom-light: #9964ab;
$custom-dark: #000000;
JSON
{
  "hex": "#6b2187",
  "rgb": {
    "r": 107,
    "g": 33,
    "b": 135
  },
  "hsl": {
    "h": 283.529,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.41207,
    "c": 0.16627,
    "h": 314.8
  },
  "luminance": 0.05963
}

Semantic roles & 50–950 ramp

primary
#6B2187
secondary
#6AB74D
accent
#E44470
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #6B2187

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

Preview Lab → · Contrast checker → · Palette generator →

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