#6B188B#6B188B

#6B188B is a dark, vivid purple. Relative luminance 0.056; OKLCH L 40.7% C 0.179 H 314.0°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#6B188B
RGBrgb(107, 24, 139)
HSLhsl(283, 71%, 32%)
HSVhsv(283, 83%, 55%)
CMYKcmyk(23%, 82.7%, 0%, 45.5%)
CIE-LABlab(28.49, 52.24, -45.64)
CIE-LCHlch(28.49, 69.37, 318.86°)
OKLaboklab(40.72% 0.1246 -0.1291)
OKLCHoklch(40.72% 0.179 314)
XYZxyz(11.0494, 5.6435, 24.9284)
Luminance0.0564 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B188B #388B18
analogous
#31188B #6B188B #8B1872
triadic
#6B188B #8B6B18 #188B6B
tetradic
#6B188B #8B3118 #388B18 #18728B
square
#6B188B #8B3118 #388B18 #18728B
split-complementary
#6B188B #728B18 #188B31
monochromatic
#1B0623 #430F57 #6B188B #9321BF #B23FDE

Accessibility & contrast

On white

9.87
#6B188B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#6B188B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B188B
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B188B#FFFFFF#000000##FFFFFF
##6B188B1.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8E
Deuteranopia (green-blind)
#0A4589
Tritanopia (blue-blind)
#683553
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #6b188b;
/* rgb */ color: rgb(107, 24, 139);
/* oklch */ color: oklch(40.7% 0.179 314.0);
Tailwind
colors: {
  custom: {
    50: '#9a61ae',
    500: '#6b188b',
    950: '#000000',
  },
}
SCSS
$custom: #6b188b;
$custom-light: #9a61ae;
$custom-dark: #000000;
JSON
{
  "hex": "#6b188b",
  "rgb": {
    "r": 107,
    "g": 24,
    "b": 139
  },
  "hsl": {
    "h": 283.304,
    "s": 70.552,
    "l": 31.961
  },
  "oklch": {
    "l": 0.40719,
    "c": 0.17937,
    "h": 314
  },
  "luminance": 0.05643
}

Semantic roles & 50–950 ramp

primary
#6B188B
secondary
#63BE40
accent
#ED3A6C
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0510
muted
#7E7A7F

Preview Lab

Preview with #6B188B

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

Preview Lab → · Contrast checker → · Palette generator →

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