#6A1978#6A1978

#6A1978 is a dark, vivid purple. Relative luminance 0.051; OKLCH L 39.2% C 0.161 H 321.2°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#6A1978
RGBrgb(106, 25, 120)
HSLhsl(291, 66%, 28%)
HSVhsv(291, 79%, 47%)
CMYKcmyk(11.7%, 79.2%, 0%, 52.9%)
CIE-LABlab(27.06, 47.89, -36.01)
CIE-LCHlch(27.06, 59.92, 323.06°)
OKLaboklab(39.24% 0.1255 -0.1009)
OKLCHoklch(39.24% 0.161 321.2)
XYZxyz(9.6813, 5.1160, 18.2432)
Luminance0.0512 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A1978 #277819
analogous
#3A1978 #6A1978 #781956
triadic
#6A1978 #786A19 #19786A
tetradic
#6A1978 #783A19 #277819 #195678
square
#6A1978 #783A19 #277819 #195678
split-complementary
#6A1978 #567819 #19783A
monochromatic
#160519 #3D0E45 #6A1978 #9724AB #BE36D5

Accessibility & contrast

On white

10.38
#6A1978 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#6A1978 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A1978
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A1978#FFFFFF#000000##FFFFFF
##6A19781.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7B
Deuteranopia (green-blind)
#254376
Tritanopia (blue-blind)
#6B2C48
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #6a1978;
/* rgb */ color: rgb(106, 25, 120);
/* oklch */ color: oklch(39.2% 0.161 321.2);
Tailwind
colors: {
  custom: {
    50: '#98609f',
    500: '#6a1978',
    950: '#000000',
  },
}
SCSS
$custom: #6a1978;
$custom-light: #98609f;
$custom-dark: #000000;
JSON
{
  "hex": "#6a1978",
  "rgb": {
    "r": 106,
    "g": 25,
    "b": 120
  },
  "hsl": {
    "h": 291.158,
    "s": 65.517,
    "l": 28.431
  },
  "oklch": {
    "l": 0.3924,
    "c": 0.16104,
    "h": 321.2
  },
  "luminance": 0.05115
}

Semantic roles & 50–950 ramp

primary
#6A1978
secondary
#50AD40
accent
#E83F58
background
#F9F5F9
surface
#F2EAF2
border
#CCC6CC
text
#0E050E
muted
#7E797E

Preview Lab

Preview with #6A1978

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

Preview Lab → · Contrast checker → · Palette generator →

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