#4A0C51#4A0C51

#4A0C51 is a dark, vivid purple. Relative luminance 0.023; OKLCH L 30.2% C 0.125 H 323.4°. Best body text is #FFFFFF at 14.36:1 contrast (WCAG AA passes).

Color values

HEX#4A0C51
RGBrgb(74, 12, 81)
HSLhsl(294, 74%, 18%)
HSVhsv(294, 85%, 32%)
CMYKcmyk(8.6%, 85.2%, 0%, 68.2%)
CIE-LABlab(17.05, 37.62, -26.77)
CIE-LCHlch(17.05, 46.17, 324.57°)
OKLaboklab(30.15% 0.1008 -0.0748)
OKLCHoklch(30.15% 0.125 323.4)
XYZxyz(4.4406, 2.3131, 7.9956)
Luminance0.0231 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A0C51 #13510C
analogous
#270C51 #4A0C51 #510C35
triadic
#4A0C51 #514A0C #0C514A
tetradic
#4A0C51 #51270C #13510C #0C3551
square
#4A0C51 #51270C #13510C #0C3551
split-complementary
#4A0C51 #35510C #0C5127
monochromatic
#18041B #19041C #4A0C51 #7B1486 #AB1CBC

Accessibility & contrast

On white

14.36
#4A0C51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#4A0C51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A0C51
14.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A0C51#FFFFFF#000000##FFFFFF
##4A0C511.0014.361.4614.36
#FFFFFF14.361.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002553
Deuteranopia (green-blind)
#192C4F
Tritanopia (blue-blind)
#4B1A2F
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #4a0c51;
/* rgb */ color: rgb(74, 12, 81);
/* oklch */ color: oklch(30.2% 0.125 323.4);
Tailwind
colors: {
  custom: {
    50: '#7f5482',
    500: '#4a0c51',
    950: '#000000',
  },
}
SCSS
$custom: #4a0c51;
$custom-light: #7f5482;
$custom-dark: #000000;
JSON
{
  "hex": "#4a0c51",
  "rgb": {
    "r": 74,
    "g": 12,
    "b": 81
  },
  "hsl": {
    "h": 293.913,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.30154,
    "c": 0.12548,
    "h": 323.4
  },
  "luminance": 0.02313
}

Semantic roles & 50–950 ramp

primary
#4A0C51
secondary
#368C2C
accent
#F1374A
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0A030A
muted
#7C787C

Preview Lab

Preview with #4A0C51

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

Preview Lab → · Contrast checker → · Palette generator →

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