#6C138F#6C138F

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

Color values

HEX#6C138F
RGBrgb(108, 19, 143)
HSLhsl(283, 77%, 32%)
HSVhsv(283, 87%, 56%)
CMYKcmyk(24.5%, 86.7%, 0%, 43.9%)
CIE-LABlab(28.48, 54.68, -48.14)
CIE-LCHlch(28.48, 72.85, 318.64°)
OKLaboklab(40.84% 0.1285 -0.1363)
OKLCHoklch(40.84% 0.187 313.3)
XYZxyz(11.3743, 5.6374, 26.4702)
Luminance0.0564 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C138F #368F13
analogous
#2E138F #6C138F #8F1374
triadic
#6C138F #8F6C13 #138F6C
tetradic
#6C138F #8F2E13 #368F13 #13748F
square
#6C138F #8F2E13 #368F13 #13748F
split-complementary
#6C138F #748F13 #138F2E
monochromatic
#1A0523 #430C59 #6C138F #951AC5 #B438E5

Accessibility & contrast

On white

9.87
#6C138F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#6C138F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C138F
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C138F#FFFFFF#000000##FFFFFF
##6C138F1.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F92
Deuteranopia (green-blind)
#00458D
Tritanopia (blue-blind)
#683454
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #6c138f;
/* rgb */ color: rgb(108, 19, 143);
/* oklch */ color: oklch(40.8% 0.187 313.3);
Tailwind
colors: {
  custom: {
    50: '#9b5fb1',
    500: '#6c138f',
    950: '#000000',
  },
}
SCSS
$custom: #6c138f;
$custom-light: #9b5fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#6c138f",
  "rgb": {
    "r": 108,
    "g": 19,
    "b": 143
  },
  "hsl": {
    "h": 283.065,
    "s": 76.543,
    "l": 31.765
  },
  "oklch": {
    "l": 0.40839,
    "c": 0.18735,
    "h": 313.3
  },
  "luminance": 0.05637
}

Semantic roles & 50–950 ramp

primary
#6C138F
secondary
#61C33B
accent
#F3356A
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0511
muted
#7E7A80

Preview Lab

Preview with #6C138F

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

Preview Lab → · Contrast checker → · Palette generator →

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