#6B128F#6B128F

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

Color values

HEX#6B128F
RGBrgb(107, 18, 143)
HSLhsl(283, 78%, 32%)
HSVhsv(283, 87%, 56%)
CMYKcmyk(25.2%, 87.4%, 0%, 43.9%)
CIE-LABlab(28.23, 54.77, -48.55)
CIE-LCHlch(28.23, 73.19, 318.44°)
OKLaboklab(40.63% 0.1277 -0.1376)
OKLCHoklch(40.63% 0.188 312.9)
XYZxyz(11.2367, 5.5419, 26.4591)
Luminance0.0554 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B128F #368F12
analogous
#2D128F #6B128F #8F1275
triadic
#6B128F #8F6B12 #128F6B
tetradic
#6B128F #8F2D12 #368F12 #12758F
square
#6B128F #8F2D12 #368F12 #12758F
split-complementary
#6B128F #758F12 #128F2D
monochromatic
#1A0422 #420B59 #6B128F #9419C5 #B336E6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##6B128F#FFFFFF#000000##FFFFFF
##6B128F1.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)
#003E92
Deuteranopia (green-blind)
#00448D
Tritanopia (blue-blind)
#673454
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #6b128f;
/* rgb */ color: rgb(107, 18, 143);
/* oklch */ color: oklch(40.6% 0.188 312.9);
Tailwind
colors: {
  custom: {
    50: '#9a5fb1',
    500: '#6b128f',
    950: '#000000',
  },
}
SCSS
$custom: #6b128f;
$custom-light: #9a5fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#6b128f",
  "rgb": {
    "r": 107,
    "g": 18,
    "b": 143
  },
  "hsl": {
    "h": 282.72,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.4063,
    "c": 0.18776,
    "h": 312.9
  },
  "luminance": 0.05542
}

Semantic roles & 50–950 ramp

primary
#6B128F
secondary
#61C33A
accent
#F4346B
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0F0511
muted
#7E7980

Preview Lab

Preview with #6B128F

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

Preview Lab → · Contrast checker → · Palette generator →

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