#6A128D#6A128D

#6A128D is a dark, vivid purple. Relative luminance 0.054; OKLCH L 40.3% C 0.186 H 313.1°. Best body text is #FFFFFF at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#6A128D
RGBrgb(106, 18, 141)
HSLhsl(283, 77%, 31%)
HSVhsv(283, 87%, 55%)
CMYKcmyk(24.8%, 87.2%, 0%, 44.7%)
CIE-LABlab(27.90, 54.19, -47.85)
CIE-LCHlch(27.90, 72.30, 318.56°)
OKLaboklab(40.32% 0.1269 -0.1356)
OKLCHoklch(40.32% 0.186 313.1)
XYZxyz(10.9670, 5.4202, 25.6626)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A128D #358D12
analogous
#2C128D #6A128D #8D1272
triadic
#6A128D #8D6A12 #128D6A
tetradic
#6A128D #8D2C12 #358D12 #12728D
square
#6A128D #8D2C12 #358D12 #12728D
split-complementary
#6A128D #728D12 #128D2C
monochromatic
#180420 #410B57 #6A128D #9319C3 #B334E5

Accessibility & contrast

On white

10.08
#6A128D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#6A128D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A128D
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A128D#FFFFFF#000000##FFFFFF
##6A128D1.0010.082.0810.08
#FFFFFF10.081.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6a128d;
/* rgb */ color: rgb(106, 18, 141);
/* oklch */ color: oklch(40.3% 0.186 313.1);
Tailwind
colors: {
  custom: {
    50: '#995faf',
    500: '#6a128d',
    950: '#000000',
  },
}
SCSS
$custom: #6a128d;
$custom-light: #995faf;
$custom-dark: #000000;
JSON
{
  "hex": "#6a128d",
  "rgb": {
    "r": 106,
    "g": 18,
    "b": 141
  },
  "hsl": {
    "h": 282.927,
    "s": 77.358,
    "l": 31.176
  },
  "oklch": {
    "l": 0.4032,
    "c": 0.18572,
    "h": 313.1
  },
  "luminance": 0.0542
}

Semantic roles & 50–950 ramp

primary
#6A128D
secondary
#60C139
accent
#F4346B
background
#F9F5FA
surface
#F2EAF5
border
#CCC6CF
text
#0E0510
muted
#7E797F

Preview Lab

Preview with #6A128D

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

Preview Lab → · Contrast checker → · Palette generator →

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