#6A1276#6A1276

#6A1276 is a dark, vivid purple. Relative luminance 0.048; OKLCH L 38.6% C 0.166 H 322.4°. Best body text is #FFFFFF at 10.71:1 contrast (WCAG AA passes).

Color values

HEX#6A1276
RGBrgb(106, 18, 118)
HSLhsl(293, 74%, 27%)
HSVhsv(293, 85%, 46%)
CMYKcmyk(10.2%, 84.7%, 0%, 53.7%)
CIE-LABlab(26.17, 49.69, -36.17)
CIE-LCHlch(26.17, 61.46, 323.95°)
OKLaboklab(38.57% 0.1316 -0.1013)
OKLCHoklch(38.57% 0.166 322.4)
XYZxyz(9.4298, 4.8054, 17.5669)
Luminance0.0481 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A1276 #1E7612
analogous
#381276 #6A1276 #761250
triadic
#6A1276 #766A12 #12766A
tetradic
#6A1276 #763812 #1E7612 #125076
square
#6A1276 #763812 #1E7612 #125076
split-complementary
#6A1276 #507612 #127638
monochromatic
#18041B #3A0A41 #6A1276 #9A1AAB #C725DE

Accessibility & contrast

On white

10.71
#6A1276 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#6A1276 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A1276
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A1276#FFFFFF#000000##FFFFFF
##6A12761.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003879
Deuteranopia (green-blind)
#234174
Tritanopia (blue-blind)
#6B2845
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #6a1276;
/* rgb */ color: rgb(106, 18, 118);
/* oklch */ color: oklch(38.6% 0.166 322.4);
Tailwind
colors: {
  custom: {
    50: '#985d9e',
    500: '#6a1276',
    950: '#000000',
  },
}
SCSS
$custom: #6a1276;
$custom-light: #985d9e;
$custom-dark: #000000;
JSON
{
  "hex": "#6a1276",
  "rgb": {
    "r": 106,
    "g": 18,
    "b": 118
  },
  "hsl": {
    "h": 292.8,
    "s": 73.529,
    "l": 26.667
  },
  "oklch": {
    "l": 0.38567,
    "c": 0.16607,
    "h": 322.4
  },
  "luminance": 0.04805
}

Semantic roles & 50–950 ramp

primary
#6A1276
secondary
#45AD37
accent
#F0384E
background
#F9F5F9
surface
#F2EAF2
border
#CCC6CC
text
#0E050E
muted
#7E797E

Preview Lab

Preview with #6A1276

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

Preview Lab → · Contrast checker → · Palette generator →

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