#6B188A#6B188A

#6B188A is a dark, vivid purple. Relative luminance 0.056; OKLCH L 40.6% C 0.178 H 314.4°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#6B188A
RGBrgb(107, 24, 138)
HSLhsl(284, 70%, 32%)
HSVhsv(284, 83%, 54%)
CMYKcmyk(22.5%, 82.6%, 0%, 45.9%)
CIE-LABlab(28.42, 52.03, -45.14)
CIE-LCHlch(28.42, 68.88, 319.06°)
OKLaboklab(40.64% 0.1248 -0.1276)
OKLCHoklch(40.64% 0.178 314.4)
XYZxyz(10.9767, 5.6144, 24.5453)
Luminance0.0561 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B188A #378A18
analogous
#32188A #6B188A #8A1870
triadic
#6B188A #8A6B18 #188A6B
tetradic
#6B188A #8A3218 #378A18 #18708A
square
#6B188A #8A3218 #378A18 #18708A
split-complementary
#6B188A #708A18 #188A32
monochromatic
#1A0622 #430F56 #6B188A #9321BE #B23FDE

Accessibility & contrast

On white

9.89
#6B188A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#6B188A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B188A
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B188A#FFFFFF#000000##FFFFFF
##6B188A1.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8D
Deuteranopia (green-blind)
#0D4588
Tritanopia (blue-blind)
#683452
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #6b188a;
/* rgb */ color: rgb(107, 24, 138);
/* oklch */ color: oklch(40.6% 0.178 314.4);
Tailwind
colors: {
  custom: {
    50: '#9a61ad',
    500: '#6b188a',
    950: '#000000',
  },
}
SCSS
$custom: #6b188a;
$custom-light: #9a61ad;
$custom-dark: #000000;
JSON
{
  "hex": "#6b188a",
  "rgb": {
    "r": 107,
    "g": 24,
    "b": 138
  },
  "hsl": {
    "h": 283.684,
    "s": 70.37,
    "l": 31.765
  },
  "oklch": {
    "l": 0.40641,
    "c": 0.17848,
    "h": 314.4
  },
  "luminance": 0.05614
}

Semantic roles & 50–950 ramp

primary
#6B188A
secondary
#62BD40
accent
#ED3B6B
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0510
muted
#7E7A7F

Preview Lab

Preview with #6B188A

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

Preview Lab → · Contrast checker → · Palette generator →

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