#3A1978#3A1978

#3A1978 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.6% C 0.149 H 291.8°. Best body text is #FFFFFF at 13.21:1 contrast (WCAG AA passes).

Color values

HEX#3A1978
RGBrgb(58, 25, 120)
HSLhsl(261, 66%, 28%)
HSVhsv(261, 79%, 47%)
CMYKcmyk(51.7%, 79.2%, 0%, 52.9%)
CIE-LABlab(19.85, 38.68, -48.06)
CIE-LCHlch(19.85, 61.69, 308.83°)
OKLaboklab(32.65% 0.0552 -0.138)
OKLCHoklch(32.65% 0.149 291.8)
XYZxyz(5.4818, 2.9507, 18.0464)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1978 #577819
analogous
#192778 #3A1978 #691978
triadic
#3A1978 #783A19 #19783A
tetradic
#3A1978 #781927 #577819 #197869
square
#3A1978 #781927 #577819 #197869
split-complementary
#3A1978 #786919 #277819
monochromatic
#0C0519 #220E45 #3A1978 #5224AB #6D36D5

Accessibility & contrast

On white

13.21
#3A1978 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#3A1978 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1978
13.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1978#FFFFFF#000000##FFFFFF
##3A19781.0013.211.5913.21
#FFFFFF13.211.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317B
Deuteranopia (green-blind)
#002E76
Tritanopia (blue-blind)
#253348
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3a1978;
/* rgb */ color: rgb(58, 25, 120);
/* oklch */ color: oklch(32.6% 0.149 291.8);
Tailwind
colors: {
  custom: {
    50: '#775aa0',
    500: '#3a1978',
    950: '#000000',
  },
}
SCSS
$custom: #3a1978;
$custom-light: #775aa0;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1978",
  "rgb": {
    "r": 58,
    "g": 25,
    "b": 120
  },
  "hsl": {
    "h": 260.842,
    "s": 65.517,
    "l": 28.431
  },
  "oklch": {
    "l": 0.32645,
    "c": 0.1486,
    "h": 291.8
  },
  "luminance": 0.02951
}

Semantic roles & 50–950 ramp

primary
#3A1978
secondary
#87AD40
accent
#E83FAE
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #3A1978

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

Preview Lab → · Contrast checker → · Palette generator →

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