#4B0C5F#4B0C5F

#4B0C5F is a dark, vivid purple. Relative luminance 0.026; OKLCH L 31.4% C 0.139 H 316.0°. Best body text is #FFFFFF at 13.84:1 contrast (WCAG AA passes).

Color values

HEX#4B0C5F
RGBrgb(75, 12, 95)
HSLhsl(286, 78%, 21%)
HSVhsv(286, 87%, 37%)
CMYKcmyk(21.1%, 87.4%, 0%, 62.7%)
CIE-LABlab(18.30, 40.73, -34.16)
CIE-LCHlch(18.30, 53.16, 320.01°)
OKLaboklab(31.41% 0.0998 -0.0964)
OKLCHoklch(31.41% 0.139 316)
XYZxyz(5.0984, 2.5852, 11.0547)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B0C5F #205F0C
analogous
#210C5F #4B0C5F #5F0C49
triadic
#4B0C5F #5F4B0C #0C5F4B
tetradic
#4B0C5F #5F210C #205F0C #0C495F
square
#4B0C5F #5F210C #205F0C #0C495F
split-complementary
#4B0C5F #495F0C #0C5F21
monochromatic
#15031B #200529 #4B0C5F #761395 #A11ACC

Accessibility & contrast

On white

13.84
#4B0C5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#4B0C5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B0C5F
13.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B0C5F#FFFFFF#000000##FFFFFF
##4B0C5F1.0013.841.5213.84
#FFFFFF13.841.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002961
Deuteranopia (green-blind)
#0A2E5D
Tritanopia (blue-blind)
#4A2037
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #4b0c5f;
/* rgb */ color: rgb(75, 12, 95);
/* oklch */ color: oklch(31.4% 0.139 316.0);
Tailwind
colors: {
  custom: {
    50: '#81558d',
    500: '#4b0c5f',
    950: '#000000',
  },
}
SCSS
$custom: #4b0c5f;
$custom-light: #81558d;
$custom-dark: #000000;
JSON
{
  "hex": "#4b0c5f",
  "rgb": {
    "r": 75,
    "g": 12,
    "b": 95
  },
  "hsl": {
    "h": 285.542,
    "s": 77.57,
    "l": 20.98
  },
  "oklch": {
    "l": 0.31407,
    "c": 0.13879,
    "h": 316
  },
  "luminance": 0.02585
}

Semantic roles & 50–950 ramp

primary
#4B0C5F
secondary
#47992D
accent
#F43462
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B030C
muted
#7C787D

Preview Lab

Preview with #4B0C5F

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

Preview Lab → · Contrast checker → · Palette generator →

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