#4B0C4F#4B0C4F

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

Color values

HEX#4B0C4F
RGBrgb(75, 12, 79)
HSLhsl(296, 74%, 18%)
HSVhsv(296, 85%, 31%)
CMYKcmyk(5.1%, 84.8%, 0%, 69%)
CIE-LABlab(17.10, 37.45, -25.31)
CIE-LCHlch(17.10, 45.21, 325.95°)
OKLaboklab(30.18% 0.1022 -0.0705)
OKLCHoklch(30.18% 0.124 325.4)
XYZxyz(4.4443, 2.3236, 7.6100)
Luminance0.0232 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B0C4F #104F0C
analogous
#290C4F #4B0C4F #4F0C31
triadic
#4B0C4F #4F4B0C #0C4F4B
tetradic
#4B0C4F #4F290C #104F0C #0C314F
square
#4B0C4F #4F290C #104F0C #0C314F
split-complementary
#4B0C4F #314F0C #0C4F29
monochromatic
#19041B #19041B #4B0C4F #7D1484 #B01CB9

Accessibility & contrast

On white

14.34
#4B0C4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4B0C4F
14.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B0C4F#FFFFFF#000000##FFFFFF
##4B0C4F1.0014.341.4614.34
#FFFFFF14.341.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4b0c4f;
/* rgb */ color: rgb(75, 12, 79);
/* oklch */ color: oklch(30.2% 0.124 325.4);
Tailwind
colors: {
  custom: {
    50: '#805481',
    500: '#4b0c4f',
    950: '#000000',
  },
}
SCSS
$custom: #4b0c4f;
$custom-light: #805481;
$custom-dark: #000000;
JSON
{
  "hex": "#4b0c4f",
  "rgb": {
    "r": 75,
    "g": 12,
    "b": 79
  },
  "hsl": {
    "h": 296.418,
    "s": 73.626,
    "l": 17.843
  },
  "oklch": {
    "l": 0.30181,
    "c": 0.12418,
    "h": 325.4
  },
  "luminance": 0.02323
}

Semantic roles & 50–950 ramp

primary
#4B0C4F
secondary
#328B2C
accent
#F03843
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0A030A
muted
#7C787C

Preview Lab

Preview with #4B0C4F

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

Preview Lab → · Contrast checker → · Palette generator →

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