#6A188C#6A188C

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

Color values

HEX#6A188C
RGBrgb(106, 24, 140)
HSLhsl(282, 71%, 32%)
HSVhsv(282, 83%, 55%)
CMYKcmyk(24.3%, 82.9%, 0%, 45.1%)
CIE-LABlab(28.41, 52.27, -46.40)
CIE-LCHlch(28.41, 69.89, 318.40°)
OKLaboklab(40.65% 0.123 -0.1314)
OKLCHoklch(40.65% 0.18 313.1)
XYZxyz(11.0033, 5.6112, 25.3093)
Luminance0.0561 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A188C #3A8C18
analogous
#30188C #6A188C #8C1874
triadic
#6A188C #8C6A18 #188C6A
tetradic
#6A188C #8C3018 #3A8C18 #18748C
square
#6A188C #8C3018 #3A8C18 #18748C
split-complementary
#6A188C #748C18 #188C30
monochromatic
#1B0624 #420F58 #6A188C #9221C0 #B040DE

Accessibility & contrast

On white

9.90
#6A188C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6A188C
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A188C#FFFFFF#000000##FFFFFF
##6A188C1.009.902.129.90
#FFFFFF9.901.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8F
Deuteranopia (green-blind)
#03458A
Tritanopia (blue-blind)
#663553
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #6a188c;
/* rgb */ color: rgb(106, 24, 140);
/* oklch */ color: oklch(40.7% 0.180 313.1);
Tailwind
colors: {
  custom: {
    50: '#9961ae',
    500: '#6a188c',
    950: '#000000',
  },
}
SCSS
$custom: #6a188c;
$custom-light: #9961ae;
$custom-dark: #000000;
JSON
{
  "hex": "#6a188c",
  "rgb": {
    "r": 106,
    "g": 24,
    "b": 140
  },
  "hsl": {
    "h": 282.414,
    "s": 70.732,
    "l": 32.157
  },
  "oklch": {
    "l": 0.40651,
    "c": 0.17995,
    "h": 313.1
  },
  "luminance": 0.05611
}

Semantic roles & 50–950 ramp

primary
#6A188C
secondary
#66BF41
accent
#ED3A6F
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0510
muted
#7E7A7F

Preview Lab

Preview with #6A188C

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

Preview Lab → · Contrast checker → · Palette generator →

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