#6B138F#6B138F

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

Color values

HEX#6B138F
RGBrgb(107, 19, 143)
HSLhsl(283, 77%, 32%)
HSVhsv(283, 87%, 56%)
CMYKcmyk(25.2%, 86.7%, 0%, 43.9%)
CIE-LABlab(28.31, 54.51, -48.41)
CIE-LCHlch(28.31, 72.90, 318.39°)
OKLaboklab(40.69% 0.1271 -0.1372)
OKLCHoklch(40.69% 0.187 312.8)
XYZxyz(11.2533, 5.5751, 26.4646)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B138F #378F13
analogous
#2D138F #6B138F #8F1375
triadic
#6B138F #8F6B13 #138F6B
tetradic
#6B138F #8F2D13 #378F13 #13758F
square
#6B138F #8F2D13 #378F13 #13758F
split-complementary
#6B138F #758F13 #138F2D
monochromatic
#1A0523 #430C59 #6B138F #931AC5 #B238E5

Accessibility & contrast

On white

9.93
#6B138F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6B138F
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B138F#FFFFFF#000000##FFFFFF
##6B138F1.009.932.129.93
#FFFFFF9.931.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6b138f;
/* rgb */ color: rgb(107, 19, 143);
/* oklch */ color: oklch(40.7% 0.187 312.8);
Tailwind
colors: {
  custom: {
    50: '#9a5fb1',
    500: '#6b138f',
    950: '#000000',
  },
}
SCSS
$custom: #6b138f;
$custom-light: #9a5fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#6b138f",
  "rgb": {
    "r": 107,
    "g": 19,
    "b": 143
  },
  "hsl": {
    "h": 282.581,
    "s": 76.543,
    "l": 31.765
  },
  "oklch": {
    "l": 0.40691,
    "c": 0.18703,
    "h": 312.8
  },
  "luminance": 0.05575
}

Semantic roles & 50–950 ramp

primary
#6B138F
secondary
#62C33B
accent
#F3356C
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0511
muted
#7E7A80

Preview Lab

Preview with #6B138F

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

Preview Lab → · Contrast checker → · Palette generator →

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