#3A1996#3A1996

#3A1996 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.8% C 0.184 H 284.3°. Best body text is #FFFFFF at 11.94:1 contrast (WCAG AA passes).

Color values

HEX#3A1996
RGBrgb(58, 25, 150)
HSLhsl(256, 71%, 34%)
HSVhsv(256, 83%, 59%)
CMYKcmyk(61.3%, 83.3%, 0%, 41.2%)
CIE-LABlab(22.99, 47.33, -61.73)
CIE-LCHlch(22.99, 77.78, 307.48°)
OKLaboklab(35.77% 0.0452 -0.1779)
OKLCHoklch(35.77% 0.184 284.3)
XYZxyz(7.5959, 3.7963, 29.1807)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1996 #759619
analogous
#193796 #3A1996 #791996
triadic
#3A1996 #963A19 #19963A
tetradic
#3A1996 #961937 #759619 #199679
square
#3A1996 #961937 #759619 #199679
split-complementary
#3A1996 #967919 #379619
monochromatic
#11082D #261062 #3A1996 #4E22CA #7149E1

Accessibility & contrast

On white

11.94
#3A1996 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#3A1996 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1996
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1996#FFFFFF#000000##FFFFFF
##3A19961.0011.941.7611.94
#FFFFFF11.941.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A99
Deuteranopia (green-blind)
#003394
Tritanopia (blue-blind)
#004059
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3a1996;
/* rgb */ color: rgb(58, 25, 150);
/* oklch */ color: oklch(35.8% 0.184 284.3);
Tailwind
colors: {
  custom: {
    50: '#7d5cb6',
    500: '#3a1996',
    950: '#000000',
  },
}
SCSS
$custom: #3a1996;
$custom-light: #7d5cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1996",
  "rgb": {
    "r": 58,
    "g": 25,
    "b": 150
  },
  "hsl": {
    "h": 255.84,
    "s": 71.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35769,
    "c": 0.1836,
    "h": 284.3
  },
  "luminance": 0.03797
}

Semantic roles & 50–950 ramp

primary
#3A1996
secondary
#A2C249
accent
#EE3ABF
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3A1996

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

Preview Lab → · Contrast checker → · Palette generator →

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