#6B138E#6B138E

#6B138E is a dark, vivid purple. Relative luminance 0.055; OKLCH L 40.6% C 0.186 H 313.2°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#6B138E
RGBrgb(107, 19, 142)
HSLhsl(283, 76%, 32%)
HSVhsv(283, 87%, 56%)
CMYKcmyk(24.6%, 86.6%, 0%, 44.3%)
CIE-LABlab(28.23, 54.31, -47.92)
CIE-LCHlch(28.23, 72.43, 318.57°)
OKLaboklab(40.61% 0.1274 -0.1358)
OKLCHoklch(40.61% 0.186 313.2)
XYZxyz(11.1779, 5.5449, 26.0674)
Luminance0.0554 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B138E #368E13
analogous
#2E138E #6B138E #8E1374
triadic
#6B138E #8E6B13 #138E6B
tetradic
#6B138E #8E2E13 #368E13 #13748E
square
#6B138E #8E2E13 #368E13 #13748E
split-complementary
#6B138E #748E13 #138E2E
monochromatic
#1A0522 #420C58 #6B138E #941AC4 #B337E4

Accessibility & contrast

On white

9.96
#6B138E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#6B138E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B138E
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B138E#FFFFFF#000000##FFFFFF
##6B138E1.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E91
Deuteranopia (green-blind)
#00448C
Tritanopia (blue-blind)
#673453
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #6b138e;
/* rgb */ color: rgb(107, 19, 142);
/* oklch */ color: oklch(40.6% 0.186 313.2);
Tailwind
colors: {
  custom: {
    50: '#9a5fb0',
    500: '#6b138e',
    950: '#000000',
  },
}
SCSS
$custom: #6b138e;
$custom-light: #9a5fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#6b138e",
  "rgb": {
    "r": 107,
    "g": 19,
    "b": 142
  },
  "hsl": {
    "h": 282.927,
    "s": 76.398,
    "l": 31.569
  },
  "oklch": {
    "l": 0.40611,
    "c": 0.18616,
    "h": 313.2
  },
  "luminance": 0.05545
}

Semantic roles & 50–950 ramp

primary
#6B138E
secondary
#61C23B
accent
#F3356B
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0F0511
muted
#7E7A80

Preview Lab

Preview with #6B138E

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

Preview Lab → · Contrast checker → · Palette generator →

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