#6A138E#6A138E

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

Color values

HEX#6A138E
RGBrgb(106, 19, 142)
HSLhsl(282, 76%, 32%)
HSVhsv(282, 87%, 56%)
CMYKcmyk(25.4%, 86.6%, 0%, 44.3%)
CIE-LABlab(28.07, 54.14, -48.20)
CIE-LCHlch(28.07, 72.48, 318.32°)
OKLaboklab(40.46% 0.126 -0.1366)
OKLCHoklch(40.46% 0.186 312.7)
XYZxyz(11.0583, 5.4833, 26.0618)
Luminance0.0548 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A138E #378E13
analogous
#2D138E #6A138E #8E1375
triadic
#6A138E #8E6A13 #138E6A
tetradic
#6A138E #8E2D13 #378E13 #13758E
square
#6A138E #8E2D13 #378E13 #13758E
split-complementary
#6A138E #758E13 #138E2D
monochromatic
#190522 #420C58 #6A138E #921AC4 #B237E4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #6a138e;
/* rgb */ color: rgb(106, 19, 142);
/* oklch */ color: oklch(40.5% 0.186 312.7);
Tailwind
colors: {
  custom: {
    50: '#995fb0',
    500: '#6a138e',
    950: '#000000',
  },
}
SCSS
$custom: #6a138e;
$custom-light: #995fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#6a138e",
  "rgb": {
    "r": 106,
    "g": 19,
    "b": 142
  },
  "hsl": {
    "h": 282.439,
    "s": 76.398,
    "l": 31.569
  },
  "oklch": {
    "l": 0.40463,
    "c": 0.18586,
    "h": 312.7
  },
  "luminance": 0.05483
}

Semantic roles & 50–950 ramp

primary
#6A138E
secondary
#62C23B
accent
#F3356C
background
#F9F5FA
surface
#F2EAF5
border
#CCC6CF
text
#0E0511
muted
#7E7980

Preview Lab

Preview with #6A138E

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

Preview Lab → · Contrast checker → · Palette generator →

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