#3A1693#3A1693

#3A1693 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.1% C 0.183 H 285.2°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#3A1693
RGBrgb(58, 22, 147)
HSLhsl(257, 74%, 33%)
HSVhsv(257, 85%, 58%)
CMYKcmyk(60.5%, 85%, 0%, 42.4%)
CIE-LABlab(22.23, 47.72, -61.13)
CIE-LCHlch(22.23, 77.55, 307.98°)
OKLaboklab(35.15% 0.0479 -0.1761)
OKLCHoklch(35.15% 0.183 285.2)
XYZxyz(7.2967, 3.5795, 27.9045)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1693 #6F9316
analogous
#163093 #3A1693 #781693
triadic
#3A1693 #933A16 #16933A
tetradic
#3A1693 #931630 #6F9316 #169378
square
#3A1693 #931630 #6F9316 #169378
split-complementary
#3A1693 #937816 #309316
monochromatic
#100629 #250E5E #3A1693 #4F1EC8 #6F41E3

Accessibility & contrast

On white

12.24
#3A1693 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#3A1693 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1693
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1693#FFFFFF#000000##FFFFFF
##3A16931.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003896
Deuteranopia (green-blind)
#003191
Tritanopia (blue-blind)
#013D57
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3a1693;
/* rgb */ color: rgb(58, 22, 147);
/* oklch */ color: oklch(35.1% 0.183 285.2);
Tailwind
colors: {
  custom: {
    50: '#7c5ab4',
    500: '#3a1693',
    950: '#000000',
  },
}
SCSS
$custom: #3a1693;
$custom-light: #7c5ab4;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1693",
  "rgb": {
    "r": 58,
    "g": 22,
    "b": 147
  },
  "hsl": {
    "h": 257.28,
    "s": 73.964,
    "l": 33.137
  },
  "oklch": {
    "l": 0.3515,
    "c": 0.18254,
    "h": 285.2
  },
  "luminance": 0.0358
}

Semantic roles & 50–950 ramp

primary
#3A1693
secondary
#9EC342
accent
#F137BB
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3A1693

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

Preview Lab → · Contrast checker → · Palette generator →

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