#6C138E#6C138E

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

Color values

HEX#6C138E
RGBrgb(108, 19, 142)
HSLhsl(283, 76%, 32%)
HSVhsv(283, 87%, 56%)
CMYKcmyk(23.9%, 86.6%, 0%, 44.3%)
CIE-LABlab(28.40, 54.47, -47.65)
CIE-LCHlch(28.40, 72.37, 318.82°)
OKLaboklab(40.76% 0.1287 -0.1349)
OKLCHoklch(40.76% 0.186 313.7)
XYZxyz(11.2988, 5.6073, 26.0731)
Luminance0.0561 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C138E #358E13
analogous
#2F138E #6C138E #8E1373
triadic
#6C138E #8E6C13 #138E6C
tetradic
#6C138E #8E2F13 #358E13 #13738E
square
#6C138E #8E2F13 #358E13 #13738E
split-complementary
#6C138E #738E13 #138E2F
monochromatic
#1A0522 #430C58 #6C138E #951AC4 #B437E4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##6C138E#FFFFFF#000000##FFFFFF
##6C138E1.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)
#003F91
Deuteranopia (green-blind)
#00458C
Tritanopia (blue-blind)
#683453
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #6c138e;
/* rgb */ color: rgb(108, 19, 142);
/* oklch */ color: oklch(40.8% 0.186 313.7);
Tailwind
colors: {
  custom: {
    50: '#9b5fb0',
    500: '#6c138e',
    950: '#000000',
  },
}
SCSS
$custom: #6c138e;
$custom-light: #9b5fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#6c138e",
  "rgb": {
    "r": 108,
    "g": 19,
    "b": 142
  },
  "hsl": {
    "h": 283.415,
    "s": 76.398,
    "l": 31.569
  },
  "oklch": {
    "l": 0.40758,
    "c": 0.18647,
    "h": 313.7
  },
  "luminance": 0.05607
}

Semantic roles & 50–950 ramp

primary
#6C138E
secondary
#60C23B
accent
#F33569
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0F0511
muted
#7E7A80

Preview Lab

Preview with #6C138E

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

Preview Lab → · Contrast checker → · Palette generator →

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