#4B0C4B#4B0C4B

#4B0C4B is a dark, vivid purple. Relative luminance 0.023; OKLCH L 29.9% C 0.121 H 328.1°. Best body text is #FFFFFF at 14.45:1 contrast (WCAG AA passes).

Color values

HEX#4B0C4B
RGBrgb(75, 12, 75)
HSLhsl(300, 72%, 17%)
HSVhsv(300, 84%, 29%)
CMYKcmyk(0%, 84%, 0%, 70.6%)
CIE-LABlab(16.83, 36.69, -23.00)
CIE-LCHlch(16.83, 43.31, 327.92°)
OKLaboklab(29.9% 0.1024 -0.0638)
OKLCHoklch(29.9% 0.121 328.1)
XYZxyz(4.3031, 2.2671, 6.8662)
Luminance0.0227 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B0C4B #0C4B0C
analogous
#2C0C4B #4B0C4B #4B0C2C
triadic
#4B0C4B #4B4B0C #0C4B4B
tetradic
#4B0C4B #4B2C0C #0C4B0C #0C2C4B
square
#4B0C4B #4B2C0C #0C4B0C #0C2C4B
split-complementary
#4B0C4B #2C4B0C #0C4B2C
monochromatic
#1A041A #1A041A #4B0C4B #801480 #B51DB5

Accessibility & contrast

On white

14.45
#4B0C4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#4B0C4B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B0C4B
14.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B0C4B#FFFFFF#000000##FFFFFF
##4B0C4B1.0014.451.4514.45
#FFFFFF14.451.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01244D
Deuteranopia (green-blind)
#1E2C49
Tritanopia (blue-blind)
#4E162B
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #4b0c4b;
/* rgb */ color: rgb(75, 12, 75);
/* oklch */ color: oklch(29.9% 0.121 328.1);
Tailwind
colors: {
  custom: {
    50: '#80547d',
    500: '#4b0c4b',
    950: '#000000',
  },
}
SCSS
$custom: #4b0c4b;
$custom-light: #80547d;
$custom-dark: #000000;
JSON
{
  "hex": "#4b0c4b",
  "rgb": {
    "r": 75,
    "g": 12,
    "b": 75
  },
  "hsl": {
    "h": 300,
    "s": 72.414,
    "l": 17.059
  },
  "oklch": {
    "l": 0.29902,
    "c": 0.12065,
    "h": 328.1
  },
  "luminance": 0.02267
}

Semantic roles & 50–950 ramp

primary
#4B0C4B
secondary
#2C872C
accent
#EF3939
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0A030A
muted
#7C787C

Preview Lab

Preview with #4B0C4B

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

Preview Lab → · Contrast checker → · Palette generator →

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