#6C188E#6C188E

#6C188E is a dark, vivid purple. Relative luminance 0.058; OKLCH L 41.1% C 0.182 H 313.4°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#6C188E
RGBrgb(108, 24, 142)
HSLhsl(283, 71%, 33%)
HSVhsv(283, 83%, 56%)
CMYKcmyk(23.9%, 83.1%, 0%, 44.3%)
CIE-LABlab(28.89, 53.04, -46.85)
CIE-LCHlch(28.89, 70.77, 318.55°)
OKLaboklab(41.1% 0.1252 -0.1326)
OKLCHoklch(41.1% 0.182 313.4)
XYZxyz(11.3926, 5.7948, 26.1043)
Luminance0.0579 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C188E #3A8E18
analogous
#31188E #6C188E #8E1875
triadic
#6C188E #8E6C18 #188E6C
tetradic
#6C188E #8E3118 #3A8E18 #18758E
square
#6C188E #8E3118 #3A8E18 #18758E
split-complementary
#6C188E #758E18 #188E31
monochromatic
#1C0625 #440F5A #6C188E #9421C2 #B241DF

Accessibility & contrast

On white

9.73
#6C188E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#6C188E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C188E
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C188E#FFFFFF#000000##FFFFFF
##6C188E1.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004091
Deuteranopia (green-blind)
#04468C
Tritanopia (blue-blind)
#683654
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #6c188e;
/* rgb */ color: rgb(108, 24, 142);
/* oklch */ color: oklch(41.1% 0.182 313.4);
Tailwind
colors: {
  custom: {
    50: '#9b61b0',
    500: '#6c188e',
    950: '#000000',
  },
}
SCSS
$custom: #6c188e;
$custom-light: #9b61b0;
$custom-dark: #000000;
JSON
{
  "hex": "#6c188e",
  "rgb": {
    "r": 108,
    "g": 24,
    "b": 142
  },
  "hsl": {
    "h": 282.712,
    "s": 71.084,
    "l": 32.549
  },
  "oklch": {
    "l": 0.411,
    "c": 0.1824,
    "h": 313.4
  },
  "luminance": 0.05794
}

Semantic roles & 50–950 ramp

primary
#6C188E
secondary
#66C042
accent
#EE3A6E
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0F0510
muted
#7E7A7F

Preview Lab

Preview with #6C188E

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

Preview Lab → · Contrast checker → · Palette generator →

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