#6A1B79#6A1B79

#6A1B79 is a dark, vivid purple. Relative luminance 0.052; OKLCH L 39.5% C 0.160 H 320.7°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).

Color values

HEX#6A1B79
RGBrgb(106, 27, 121)
HSLhsl(290, 64%, 29%)
HSVhsv(290, 78%, 47%)
CMYKcmyk(12.4%, 77.7%, 0%, 52.5%)
CIE-LABlab(27.38, 47.38, -36.14)
CIE-LCHlch(27.38, 59.59, 322.66°)
OKLaboklab(39.49% 0.1235 -0.1013)
OKLCHoklch(39.49% 0.16 320.7)
XYZxyz(9.7866, 5.2290, 18.5793)
Luminance0.0523 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A1B79 #2A791B
analogous
#3B1B79 #6A1B79 #791B59
triadic
#6A1B79 #796A1B #1B796A
tetradic
#6A1B79 #793B1B #2A791B #1B5979
square
#6A1B79 #793B1B #2A791B #1B5979
split-complementary
#6A1B79 #59791B #1B793B
monochromatic
#160619 #3E1047 #6A1B79 #9626AB #BB3BD3

Accessibility & contrast

On white

10.26
#6A1B79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#6A1B79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A1B79
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A1B79#FFFFFF#000000##FFFFFF
##6A1B791.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7C
Deuteranopia (green-blind)
#254377
Tritanopia (blue-blind)
#6B2E49
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #6a1b79;
/* rgb */ color: rgb(106, 27, 121);
/* oklch */ color: oklch(39.5% 0.160 320.7);
Tailwind
colors: {
  custom: {
    50: '#9861a0',
    500: '#6a1b79',
    950: '#000000',
  },
}
SCSS
$custom: #6a1b79;
$custom-light: #9861a0;
$custom-dark: #000000;
JSON
{
  "hex": "#6a1b79",
  "rgb": {
    "r": 106,
    "g": 27,
    "b": 121
  },
  "hsl": {
    "h": 290.426,
    "s": 63.514,
    "l": 29.02
  },
  "oklch": {
    "l": 0.39485,
    "c": 0.15974,
    "h": 320.7
  },
  "luminance": 0.05229
}

Semantic roles & 50–950 ramp

primary
#6A1B79
secondary
#54AD43
accent
#E7415C
background
#F9F6F9
surface
#F2EBF2
border
#CCC6CC
text
#0E050F
muted
#7E7A7E

Preview Lab

Preview with #6A1B79

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

Preview Lab → · Contrast checker → · Palette generator →

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