#6A188B#6A188B

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

Color values

HEX#6A188B
RGBrgb(106, 24, 139)
HSLhsl(283, 71%, 32%)
HSVhsv(283, 83%, 55%)
CMYKcmyk(23.7%, 82.7%, 0%, 45.5%)
CIE-LABlab(28.33, 52.06, -45.91)
CIE-LCHlch(28.33, 69.41, 318.59°)
OKLaboklab(40.57% 0.1232 -0.1299)
OKLCHoklch(40.57% 0.179 313.5)
XYZxyz(10.9299, 5.5819, 24.9227)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A188B #398B18
analogous
#31188B #6A188B #8B1872
triadic
#6A188B #8B6A18 #188B6A
tetradic
#6A188B #8B3118 #398B18 #18728B
square
#6A188B #8B3118 #398B18 #18728B
split-complementary
#6A188B #728B18 #188B31
monochromatic
#1A0623 #420F57 #6A188B #9221BF #B03FDE

Accessibility & contrast

On white

9.92
#6A188B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6A188B
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A188B#FFFFFF#000000##FFFFFF
##6A188B1.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8E
Deuteranopia (green-blind)
#064589
Tritanopia (blue-blind)
#663553
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #6a188b;
/* rgb */ color: rgb(106, 24, 139);
/* oklch */ color: oklch(40.6% 0.179 313.5);
Tailwind
colors: {
  custom: {
    50: '#9961ae',
    500: '#6a188b',
    950: '#000000',
  },
}
SCSS
$custom: #6a188b;
$custom-light: #9961ae;
$custom-dark: #000000;
JSON
{
  "hex": "#6a188b",
  "rgb": {
    "r": 106,
    "g": 24,
    "b": 139
  },
  "hsl": {
    "h": 282.783,
    "s": 70.552,
    "l": 31.961
  },
  "oklch": {
    "l": 0.40572,
    "c": 0.17905,
    "h": 313.5
  },
  "luminance": 0.05582
}

Semantic roles & 50–950 ramp

primary
#6A188B
secondary
#65BE40
accent
#ED3A6E
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0510
muted
#7E7A7F

Preview Lab

Preview with #6A188B

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

Preview Lab → · Contrast checker → · Palette generator →

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