#6A138D#6A138D

#6A138D is a dark, vivid purple. Relative luminance 0.055; OKLCH L 40.4% C 0.185 H 313.1°. Best body text is #FFFFFF at 10.04:1 contrast (WCAG AA passes).

Color values

HEX#6A138D
RGBrgb(106, 19, 141)
HSLhsl(283, 76%, 31%)
HSVhsv(283, 87%, 55%)
CMYKcmyk(24.8%, 86.5%, 0%, 44.7%)
CIE-LABlab(27.99, 53.93, -47.71)
CIE-LCHlch(27.99, 72.00, 318.51°)
OKLaboklab(40.38% 0.1263 -0.1352)
OKLCHoklch(40.38% 0.185 313.1)
XYZxyz(10.9836, 5.4534, 25.6682)
Luminance0.0545 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A138D #368D13
analogous
#2D138D #6A138D #8D1373
triadic
#6A138D #8D6A13 #138D6A
tetradic
#6A138D #8D2D13 #368D13 #13738D
square
#6A138D #8D2D13 #368D13 #13738D
split-complementary
#6A138D #738D13 #138D2D
monochromatic
#190421 #410C57 #6A138D #931AC3 #B236E4

Accessibility & contrast

On white

10.04
#6A138D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6A138D
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A138D#FFFFFF#000000##FFFFFF
##6A138D1.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6a138d;
/* rgb */ color: rgb(106, 19, 141);
/* oklch */ color: oklch(40.4% 0.185 313.1);
Tailwind
colors: {
  custom: {
    50: '#995faf',
    500: '#6a138d',
    950: '#000000',
  },
}
SCSS
$custom: #6a138d;
$custom-light: #995faf;
$custom-dark: #000000;
JSON
{
  "hex": "#6a138d",
  "rgb": {
    "r": 106,
    "g": 19,
    "b": 141
  },
  "hsl": {
    "h": 282.787,
    "s": 76.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.40382,
    "c": 0.18498,
    "h": 313.1
  },
  "luminance": 0.05453
}

Semantic roles & 50–950 ramp

primary
#6A138D
secondary
#61C13B
accent
#F3356B
background
#F9F5FA
surface
#F2EAF5
border
#CCC6CF
text
#0E0510
muted
#7E797F

Preview Lab

Preview with #6A138D

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

Preview Lab → · Contrast checker → · Palette generator →

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