#6A1B8A#6A1B8A

#6A1B8A is a dark, vivid purple. Relative luminance 0.057; OKLCH L 40.7% C 0.175 H 313.6°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#6A1B8A
RGBrgb(106, 27, 138)
HSLhsl(283, 67%, 32%)
HSVhsv(283, 80%, 54%)
CMYKcmyk(23.2%, 80.4%, 0%, 45.9%)
CIE-LABlab(28.60, 50.85, -44.85)
CIE-LCHlch(28.60, 67.80, 318.59°)
OKLaboklab(40.74% 0.121 -0.1268)
OKLCHoklch(40.74% 0.175 313.6)
XYZxyz(10.9224, 5.6834, 24.5615)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A1B8A #3B8A1B
analogous
#331B8A #6A1B8A #8A1B72
triadic
#6A1B8A #8A6A1B #1B8A6A
tetradic
#6A1B8A #8A331B #3B8A1B #1B728A
square
#6A1B8A #8A331B #3B8A1B #1B728A
split-complementary
#6A1B8A #728A1B #1B8A33
monochromatic
#1B0724 #431157 #6A1B8A #9125BD #AF45DB

Accessibility & contrast

On white

9.83
#6A1B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#6A1B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A1B8A
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A1B8A#FFFFFF#000000##FFFFFF
##6A1B8A1.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8D
Deuteranopia (green-blind)
#0E4588
Tritanopia (blue-blind)
#673653
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #6a1b8a;
/* rgb */ color: rgb(106, 27, 138);
/* oklch */ color: oklch(40.7% 0.175 313.6);
Tailwind
colors: {
  custom: {
    50: '#9962ad',
    500: '#6a1b8a',
    950: '#000000',
  },
}
SCSS
$custom: #6a1b8a;
$custom-light: #9962ad;
$custom-dark: #000000;
JSON
{
  "hex": "#6a1b8a",
  "rgb": {
    "r": 106,
    "g": 27,
    "b": 138
  },
  "hsl": {
    "h": 282.703,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.40736,
    "c": 0.17528,
    "h": 313.6
  },
  "luminance": 0.05683
}

Semantic roles & 50–950 ramp

primary
#6A1B8A
secondary
#67BC45
accent
#EA3E6F
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #6A1B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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