#6A1272#6A1272

#6A1272 is a dark, vivid purple. Relative luminance 0.047; OKLCH L 38.3% C 0.163 H 324.3°. Best body text is #FFFFFF at 10.81:1 contrast (WCAG AA passes).

Color values

HEX#6A1272
RGBrgb(106, 18, 114)
HSLhsl(295, 73%, 26%)
HSVhsv(295, 84%, 45%)
CMYKcmyk(7%, 84.2%, 0%, 55.3%)
CIE-LABlab(25.90, 48.95, -34.05)
CIE-LCHlch(25.90, 59.63, 325.18°)
OKLaboklab(38.29% 0.1321 -0.0951)
OKLCHoklch(38.29% 0.163 324.3)
XYZxyz(9.1972, 4.7123, 16.3415)
Luminance0.0471 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A1272 #1A7212
analogous
#3A1272 #6A1272 #72124A
triadic
#6A1272 #726A12 #12726A
tetradic
#6A1272 #723A12 #1A7212 #124A72
square
#6A1272 #723A12 #1A7212 #124A72
split-complementary
#6A1272 #4A7212 #12723A
monochromatic
#19041A #390A3D #6A1272 #9B1AA7 #CC23DC

Accessibility & contrast

On white

10.81
#6A1272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#6A1272 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A1272
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A1272#FFFFFF#000000##FFFFFF
##6A12721.0010.811.9410.81
#FFFFFF10.811.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003774
Deuteranopia (green-blind)
#264170
Tritanopia (blue-blind)
#6C2643
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #6a1272;
/* rgb */ color: rgb(106, 18, 114);
/* oklch */ color: oklch(38.3% 0.163 324.3);
Tailwind
colors: {
  custom: {
    50: '#985d9b',
    500: '#6a1272',
    950: '#000000',
  },
}
SCSS
$custom: #6a1272;
$custom-light: #985d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#6a1272",
  "rgb": {
    "r": 106,
    "g": 18,
    "b": 114
  },
  "hsl": {
    "h": 295,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.38286,
    "c": 0.16274,
    "h": 324.3
  },
  "luminance": 0.04712
}

Semantic roles & 50–950 ramp

primary
#6A1272
secondary
#40A937
accent
#EF3848
background
#F9F5F9
surface
#F2E9F2
border
#CCC5CC
text
#0E050E
muted
#7E797E

Preview Lab

Preview with #6A1272

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

Preview Lab → · Contrast checker → · Palette generator →

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