#6A128E#6A128E

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

Color values

HEX#6A128E
RGBrgb(106, 18, 142)
HSLhsl(283, 78%, 31%)
HSVhsv(283, 87%, 56%)
CMYKcmyk(25.4%, 87.3%, 0%, 44.3%)
CIE-LABlab(27.98, 54.40, -48.34)
CIE-LCHlch(27.98, 72.77, 318.37°)
OKLaboklab(40.4% 0.1267 -0.137)
OKLCHoklch(40.4% 0.187 312.8)
XYZxyz(11.0418, 5.4501, 26.0563)
Luminance0.0545 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A128E #368E12
analogous
#2C128E #6A128E #8E1274
triadic
#6A128E #8E6A12 #128E6A
tetradic
#6A128E #8E2C12 #368E12 #12748E
square
#6A128E #8E2C12 #368E12 #12748E
split-complementary
#6A128E #748E12 #128E2C
monochromatic
#190421 #410B58 #6A128E #9319C4 #B235E5

Accessibility & contrast

On white

10.05
#6A128E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#6A128E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A128E
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A128E#FFFFFF#000000##FFFFFF
##6A128E1.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E91
Deuteranopia (green-blind)
#00448C
Tritanopia (blue-blind)
#663453
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #6a128e;
/* rgb */ color: rgb(106, 18, 142);
/* oklch */ color: oklch(40.4% 0.187 312.8);
Tailwind
colors: {
  custom: {
    50: '#995fb0',
    500: '#6a128e',
    950: '#000000',
  },
}
SCSS
$custom: #6a128e;
$custom-light: #995fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#6a128e",
  "rgb": {
    "r": 106,
    "g": 18,
    "b": 142
  },
  "hsl": {
    "h": 282.581,
    "s": 77.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.40401,
    "c": 0.18659,
    "h": 312.8
  },
  "luminance": 0.0545
}

Semantic roles & 50–950 ramp

primary
#6A128E
secondary
#61C23A
accent
#F4346C
background
#F9F5FA
surface
#F2EAF5
border
#CCC6CF
text
#0E0511
muted
#7E7980

Preview Lab

Preview with #6A128E

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

Preview Lab → · Contrast checker → · Palette generator →

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