#6D138E#6D138E

#6D138E is a dark, vivid purple. Relative luminance 0.057; OKLCH L 40.9% C 0.187 H 314.1°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#6D138E
RGBrgb(109, 19, 142)
HSLhsl(284, 76%, 32%)
HSVhsv(284, 87%, 56%)
CMYKcmyk(23.2%, 86.6%, 0%, 44.3%)
CIE-LABlab(28.57, 54.64, -47.37)
CIE-LCHlch(28.57, 72.32, 319.08°)
OKLaboklab(40.91% 0.1301 -0.1341)
OKLCHoklch(40.91% 0.187 314.1)
XYZxyz(11.4212, 5.6704, 26.0788)
Luminance0.0567 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D138E #348E13
analogous
#2F138E #6D138E #8E1372
triadic
#6D138E #8E6D13 #138E6D
tetradic
#6D138E #8E2F13 #348E13 #13728E
square
#6D138E #8E2F13 #348E13 #13728E
split-complementary
#6D138E #728E13 #138E2F
monochromatic
#1A0522 #440C58 #6D138E #961AC4 #B637E4

Accessibility & contrast

On white

9.84
#6D138E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6D138E
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D138E#FFFFFF#000000##FFFFFF
##6D138E1.009.842.139.84
#FFFFFF9.841.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F91
Deuteranopia (green-blind)
#00458C
Tritanopia (blue-blind)
#6A3453
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #6d138e;
/* rgb */ color: rgb(109, 19, 142);
/* oklch */ color: oklch(40.9% 0.187 314.1);
Tailwind
colors: {
  custom: {
    50: '#9b60b0',
    500: '#6d138e',
    950: '#000000',
  },
}
SCSS
$custom: #6d138e;
$custom-light: #9b60b0;
$custom-dark: #000000;
JSON
{
  "hex": "#6d138e",
  "rgb": {
    "r": 109,
    "g": 19,
    "b": 142
  },
  "hsl": {
    "h": 283.902,
    "s": 76.398,
    "l": 31.569
  },
  "oklch": {
    "l": 0.40907,
    "c": 0.18679,
    "h": 314.1
  },
  "luminance": 0.0567
}

Semantic roles & 50–950 ramp

primary
#6D138E
secondary
#5FC23B
accent
#F33568
background
#FAF6FA
surface
#F3EBF5
border
#CDC6CF
text
#0F0510
muted
#7F7A7F

Preview Lab

Preview with #6D138E

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

Preview Lab → · Contrast checker → · Palette generator →

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