#6A118E#6A118E

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

Color values

HEX#6A118E
RGBrgb(106, 17, 142)
HSLhsl(283, 79%, 31%)
HSVhsv(283, 88%, 56%)
CMYKcmyk(25.4%, 88%, 0%, 44.3%)
CIE-LABlab(27.89, 54.65, -48.48)
CIE-LCHlch(27.89, 73.05, 318.42°)
OKLaboklab(40.34% 0.1273 -0.1374)
OKLCHoklch(40.34% 0.187 312.8)
XYZxyz(11.0259, 5.4184, 26.0510)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A118E #358E11
analogous
#2B118E #6A118E #8E1173
triadic
#6A118E #8E6A11 #118E6A
tetradic
#6A118E #8E2B11 #358E11 #11738E
square
#6A118E #8E2B11 #358E11 #11738E
split-complementary
#6A118E #738E11 #118E2B
monochromatic
#180421 #410A57 #6A118E #9318C5 #B333E7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##6A118E#FFFFFF#000000##FFFFFF
##6A118E1.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)
#003E91
Deuteranopia (green-blind)
#00438C
Tritanopia (blue-blind)
#663453
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #6a118e;
/* rgb */ color: rgb(106, 17, 142);
/* oklch */ color: oklch(40.3% 0.187 312.8);
Tailwind
colors: {
  custom: {
    50: '#995eb0',
    500: '#6a118e',
    950: '#000000',
  },
}
SCSS
$custom: #6a118e;
$custom-light: #995eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#6a118e",
  "rgb": {
    "r": 106,
    "g": 17,
    "b": 142
  },
  "hsl": {
    "h": 282.72,
    "s": 78.616,
    "l": 31.176
  },
  "oklch": {
    "l": 0.40342,
    "c": 0.18729,
    "h": 312.8
  },
  "luminance": 0.05418
}

Semantic roles & 50–950 ramp

primary
#6A118E
secondary
#60C238
accent
#F5336B
background
#F9F5FA
surface
#F2EAF5
border
#CCC6CF
text
#0E0511
muted
#7E7980

Preview Lab

Preview with #6A118E

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

Preview Lab → · Contrast checker → · Palette generator →

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