#6A1B8D#6A1B8D

#6A1B8D is a dark, vivid purple. Relative luminance 0.058; OKLCH L 41.0% C 0.178 H 312.5°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#6A1B8D
RGBrgb(106, 27, 141)
HSLhsl(282, 68%, 33%)
HSVhsv(282, 81%, 55%)
CMYKcmyk(24.8%, 80.9%, 0%, 44.7%)
CIE-LABlab(28.83, 51.48, -46.34)
CIE-LCHlch(28.83, 69.27, 318.01°)
OKLaboklab(40.97% 0.1204 -0.1312)
OKLCHoklch(40.97% 0.178 312.5)
XYZxyz(11.1426, 5.7715, 25.7212)
Luminance0.0577 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A1B8D #3E8D1B
analogous
#311B8D #6A1B8D #8D1B77
triadic
#6A1B8D #8D6A1B #1B8D6A
tetradic
#6A1B8D #8D311B #3E8D1B #1B778D
square
#6A1B8D #8D311B #3E8D1B #1B778D
split-complementary
#6A1B8D #778D1B #1B8D31
monochromatic
#1D0726 #43115A #6A1B8D #9125C0 #AE47DC

Accessibility & contrast

On white

9.75
#6A1B8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#6A1B8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A1B8D
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A1B8D#FFFFFF#000000##FFFFFF
##6A1B8D1.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004090
Deuteranopia (green-blind)
#05458B
Tritanopia (blue-blind)
#663754
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #6a1b8d;
/* rgb */ color: rgb(106, 27, 141);
/* oklch */ color: oklch(41.0% 0.178 312.5);
Tailwind
colors: {
  custom: {
    50: '#9962af',
    500: '#6a1b8d',
    950: '#000000',
  },
}
SCSS
$custom: #6a1b8d;
$custom-light: #9962af;
$custom-dark: #000000;
JSON
{
  "hex": "#6a1b8d",
  "rgb": {
    "r": 106,
    "g": 27,
    "b": 141
  },
  "hsl": {
    "h": 281.579,
    "s": 67.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.40969,
    "c": 0.17805,
    "h": 312.5
  },
  "luminance": 0.05771
}

Semantic roles & 50–950 ramp

primary
#6A1B8D
secondary
#6BBD46
accent
#EB3D72
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #6A1B8D

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

Preview Lab → · Contrast checker → · Palette generator →

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