#4A0C4F#4A0C4F

#4A0C4F is a dark, vivid purple. Relative luminance 0.023; OKLCH L 30.0% C 0.124 H 324.7°. Best body text is #FFFFFF at 14.42:1 contrast (WCAG AA passes).

Color values

HEX#4A0C4F
RGBrgb(74, 12, 79)
HSLhsl(296, 74%, 18%)
HSVhsv(296, 85%, 31%)
CMYKcmyk(6.3%, 84.8%, 0%, 69%)
CIE-LABlab(16.91, 37.22, -25.63)
CIE-LCHlch(16.91, 45.19, 325.45°)
OKLaboklab(30.01% 0.1009 -0.0715)
OKLCHoklch(30.01% 0.124 324.7)
XYZxyz(4.3667, 2.2836, 7.6064)
Luminance0.0228 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A0C4F #114F0C
analogous
#280C4F #4A0C4F #4F0C33
triadic
#4A0C4F #4F4A0C #0C4F4A
tetradic
#4A0C4F #4F280C #114F0C #0C334F
square
#4A0C4F #4F280C #114F0C #0C334F
split-complementary
#4A0C4F #334F0C #0C4F28
monochromatic
#19041B #19041B #4A0C4F #7C1484 #AE1CB9

Accessibility & contrast

On white

14.42
#4A0C4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A0C4F
14.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A0C4F#FFFFFF#000000##FFFFFF
##4A0C4F1.0014.421.4614.42
#FFFFFF14.421.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002551
Deuteranopia (green-blind)
#1A2C4D
Tritanopia (blue-blind)
#4C192D
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #4a0c4f;
/* rgb */ color: rgb(74, 12, 79);
/* oklch */ color: oklch(30.0% 0.124 324.7);
Tailwind
colors: {
  custom: {
    50: '#7f5481',
    500: '#4a0c4f',
    950: '#000000',
  },
}
SCSS
$custom: #4a0c4f;
$custom-light: #7f5481;
$custom-dark: #000000;
JSON
{
  "hex": "#4a0c4f",
  "rgb": {
    "r": 74,
    "g": 12,
    "b": 79
  },
  "hsl": {
    "h": 295.522,
    "s": 73.626,
    "l": 17.843
  },
  "oklch": {
    "l": 0.30008,
    "c": 0.12368,
    "h": 324.7
  },
  "luminance": 0.02283
}

Semantic roles & 50–950 ramp

primary
#4A0C4F
secondary
#338B2C
accent
#F03845
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0A030A
muted
#7C787C

Preview Lab

Preview with #4A0C4F

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

Preview Lab → · Contrast checker → · Palette generator →

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