#4A0C5F#4A0C5F

#4A0C5F is a dark, vivid purple. Relative luminance 0.025; OKLCH L 31.2% C 0.138 H 315.3°. Best body text is #FFFFFF at 13.92:1 contrast (WCAG AA passes).

Color values

HEX#4A0C5F
RGBrgb(74, 12, 95)
HSLhsl(285, 78%, 21%)
HSVhsv(285, 87%, 37%)
CMYKcmyk(22.1%, 87.4%, 0%, 62.7%)
CIE-LABlab(18.12, 40.53, -34.46)
CIE-LCHlch(18.12, 53.20, 319.63°)
OKLaboklab(31.25% 0.0984 -0.0974)
OKLCHoklch(31.25% 0.138 315.3)
XYZxyz(5.0207, 2.5452, 11.0511)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A0C5F #215F0C
analogous
#200C5F #4A0C5F #5F0C4A
triadic
#4A0C5F #5F4A0C #0C5F4A
tetradic
#4A0C5F #5F200C #215F0C #0C4A5F
square
#4A0C5F #5F200C #215F0C #0C4A5F
split-complementary
#4A0C5F #4A5F0C #0C5F20
monochromatic
#15031B #200529 #4A0C5F #741395 #9F1ACC

Accessibility & contrast

On white

13.92
#4A0C5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#4A0C5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A0C5F
13.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A0C5F#FFFFFF#000000##FFFFFF
##4A0C5F1.0013.921.5113.92
#FFFFFF13.921.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002961
Deuteranopia (green-blind)
#072E5D
Tritanopia (blue-blind)
#482137
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #4a0c5f;
/* rgb */ color: rgb(74, 12, 95);
/* oklch */ color: oklch(31.2% 0.138 315.3);
Tailwind
colors: {
  custom: {
    50: '#80558d',
    500: '#4a0c5f',
    950: '#000000',
  },
}
SCSS
$custom: #4a0c5f;
$custom-light: #80558d;
$custom-dark: #000000;
JSON
{
  "hex": "#4a0c5f",
  "rgb": {
    "r": 74,
    "g": 12,
    "b": 95
  },
  "hsl": {
    "h": 284.819,
    "s": 77.57,
    "l": 20.98
  },
  "oklch": {
    "l": 0.31247,
    "c": 0.13843,
    "h": 315.3
  },
  "luminance": 0.02545
}

Semantic roles & 50–950 ramp

primary
#4A0C5F
secondary
#49992D
accent
#F43464
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B030C
muted
#7C787D

Preview Lab

Preview with #4A0C5F

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

Preview Lab → · Contrast checker → · Palette generator →

#4A0C5F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva