#6B138D#6B138D

#6B138D is a dark, vivid purple. Relative luminance 0.055; OKLCH L 40.5% C 0.185 H 313.5°. Best body text is #FFFFFF at 9.99:1 contrast (WCAG AA passes).

Color values

HEX#6B138D
RGBrgb(107, 19, 141)
HSLhsl(283, 76%, 31%)
HSVhsv(283, 87%, 55%)
CMYKcmyk(24.1%, 86.5%, 0%, 44.7%)
CIE-LABlab(28.15, 54.10, -47.43)
CIE-LCHlch(28.15, 71.95, 318.76°)
OKLaboklab(40.53% 0.1276 -0.1343)
OKLCHoklch(40.53% 0.185 313.5)
XYZxyz(11.1031, 5.5150, 25.6738)
Luminance0.0551 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B138D #358D13
analogous
#2E138D #6B138D #8D1372
triadic
#6B138D #8D6B13 #138D6B
tetradic
#6B138D #8D2E13 #358D13 #13728D
square
#6B138D #8D2E13 #358D13 #13728D
split-complementary
#6B138D #728D13 #138D2E
monochromatic
#190421 #420C57 #6B138D #941AC3 #B436E4

Accessibility & contrast

On white

9.99
#6B138D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#6B138D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B138D
9.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B138D#FFFFFF#000000##FFFFFF
##6B138D1.009.992.109.99
#FFFFFF9.991.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E90
Deuteranopia (green-blind)
#00448B
Tritanopia (blue-blind)
#673453
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #6b138d;
/* rgb */ color: rgb(107, 19, 141);
/* oklch */ color: oklch(40.5% 0.185 313.5);
Tailwind
colors: {
  custom: {
    50: '#9a5faf',
    500: '#6b138d',
    950: '#000000',
  },
}
SCSS
$custom: #6b138d;
$custom-light: #9a5faf;
$custom-dark: #000000;
JSON
{
  "hex": "#6b138d",
  "rgb": {
    "r": 107,
    "g": 19,
    "b": 141
  },
  "hsl": {
    "h": 283.279,
    "s": 76.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.4053,
    "c": 0.18529,
    "h": 313.5
  },
  "luminance": 0.05515
}

Semantic roles & 50–950 ramp

primary
#6B138D
secondary
#60C13B
accent
#F3356A
background
#F9F5FA
surface
#F2EAF5
border
#CCC6CF
text
#0F0510
muted
#7E797F

Preview Lab

Preview with #6B138D

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

Preview Lab → · Contrast checker → · Palette generator →

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