#3A0C50#3A0C50

#3A0C50 is a dark, moderate purple. Relative luminance 0.017; OKLCH L 27.4% C 0.118 H 311.7°. Best body text is #FFFFFF at 15.57:1 contrast (WCAG AA passes).

Color values

HEX#3A0C50
RGBrgb(58, 12, 80)
HSLhsl(281, 74%, 18%)
HSVhsv(281, 85%, 31%)
CMYKcmyk(27.5%, 85%, 0%, 68.6%)
CIE-LABlab(14.07, 33.90, -31.04)
CIE-LCHlch(14.07, 45.96, 317.53°)
OKLaboklab(27.45% 0.0784 -0.0879)
OKLCHoklch(27.45% 0.118 311.7)
XYZxyz(3.3241, 1.7418, 7.7489)
Luminance0.0174 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0C50 #22500C
analogous
#180C50 #3A0C50 #500C44
triadic
#3A0C50 #503A0C #0C503A
tetradic
#3A0C50 #50180C #22500C #0C4450
square
#3A0C50 #50180C #22500C #0C4450
split-complementary
#3A0C50 #44500C #0C5018
monochromatic
#13041B #13041B #3A0C50 #611485 #871CBA

Accessibility & contrast

On white

15.57
#3A0C50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#3A0C50 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A0C50
15.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0C50#FFFFFF#000000##FFFFFF
##3A0C501.0015.571.3515.57
#FFFFFF15.571.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002252
Deuteranopia (green-blind)
#01254F
Tritanopia (blue-blind)
#371C2E
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #3a0c50;
/* rgb */ color: rgb(58, 12, 80);
/* oklch */ color: oklch(27.4% 0.118 311.7);
Tailwind
colors: {
  custom: {
    50: '#735182',
    500: '#3a0c50',
    950: '#000000',
  },
}
SCSS
$custom: #3a0c50;
$custom-light: #735182;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0c50",
  "rgb": {
    "r": 58,
    "g": 12,
    "b": 80
  },
  "hsl": {
    "h": 280.588,
    "s": 73.913,
    "l": 18.039
  },
  "oklch": {
    "l": 0.27449,
    "c": 0.11781,
    "h": 311.7
  },
  "luminance": 0.01742
}

Semantic roles & 50–950 ramp

primary
#3A0C50
secondary
#4B8B2C
accent
#F13773
background
#F7F4F8
surface
#EDE7EF
border
#C8C3CA
text
#08020A
muted
#7B787C

Preview Lab

Preview with #3A0C50

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

Preview Lab → · Contrast checker → · Palette generator →

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