#6B128D#6B128D

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

Color values

HEX#6B128D
RGBrgb(107, 18, 141)
HSLhsl(283, 77%, 31%)
HSVhsv(283, 87%, 55%)
CMYKcmyk(24.1%, 87.2%, 0%, 44.7%)
CIE-LABlab(28.07, 54.36, -47.57)
CIE-LCHlch(28.07, 72.24, 318.81°)
OKLaboklab(40.47% 0.1283 -0.1347)
OKLCHoklch(40.47% 0.186 313.6)
XYZxyz(11.0866, 5.4819, 25.6682)
Luminance0.0548 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B128D #348D12
analogous
#2E128D #6B128D #8D1271
triadic
#6B128D #8D6B12 #128D6B
tetradic
#6B128D #8D2E12 #348D12 #12718D
square
#6B128D #8D2E12 #348D12 #12718D
split-complementary
#6B128D #718D12 #128D2E
monochromatic
#190420 #420B57 #6B128D #9419C3 #B434E5

Accessibility & contrast

On white

10.02
#6B128D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6B128D
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B128D#FFFFFF#000000##FFFFFF
##6B128D1.0010.022.1010.02
#FFFFFF10.021.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6b128d;
/* rgb */ color: rgb(107, 18, 141);
/* oklch */ color: oklch(40.5% 0.186 313.6);
Tailwind
colors: {
  custom: {
    50: '#9a5faf',
    500: '#6b128d',
    950: '#000000',
  },
}
SCSS
$custom: #6b128d;
$custom-light: #9a5faf;
$custom-dark: #000000;
JSON
{
  "hex": "#6b128d",
  "rgb": {
    "r": 107,
    "g": 18,
    "b": 141
  },
  "hsl": {
    "h": 283.415,
    "s": 77.358,
    "l": 31.176
  },
  "oklch": {
    "l": 0.40469,
    "c": 0.18603,
    "h": 313.6
  },
  "luminance": 0.05481
}

Semantic roles & 50–950 ramp

primary
#6B128D
secondary
#5FC139
accent
#F43469
background
#F9F5FA
surface
#F2EAF5
border
#CCC6CF
text
#0F0510
muted
#7E797F

Preview Lab

Preview with #6B128D

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

Preview Lab → · Contrast checker → · Palette generator →

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