#4C0F58#4C0F58

#4C0F58 is a dark, vivid purple. Relative luminance 0.026; OKLCH L 31.3% C 0.130 H 320.3°. Best body text is #FFFFFF at 13.85:1 contrast (WCAG AA passes).

Color values

HEX#4C0F58
RGBrgb(76, 15, 88)
HSLhsl(290, 71%, 20%)
HSVhsv(290, 83%, 35%)
CMYKcmyk(13.6%, 83%, 0%, 65.5%)
CIE-LABlab(18.29, 38.45, -29.49)
CIE-LCHlch(18.29, 48.46, 322.51°)
OKLaboklab(31.26% 0.0998 -0.0827)
OKLCHoklch(31.26% 0.13 320.3)
XYZxyz(4.9126, 2.5830, 9.4704)
Luminance0.0258 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C0F58 #1B580F
analogous
#270F58 #4C0F58 #580F3F
triadic
#4C0F58 #584C0F #0F584C
tetradic
#4C0F58 #58270F #1B580F #0F3F58
square
#4C0F58 #58270F #1B580F #0F3F58
split-complementary
#4C0F58 #3F580F #0F5827
monochromatic
#17041A #1F0624 #4C0F58 #79188C #A621C1

Accessibility & contrast

On white

13.85
#4C0F58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C0F58
13.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C0F58#FFFFFF#000000##FFFFFF
##4C0F581.0013.851.5213.85
#FFFFFF13.851.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295A
Deuteranopia (green-blind)
#172F56
Tritanopia (blue-blind)
#4C1E33
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #4c0f58;
/* rgb */ color: rgb(76, 15, 88);
/* oklch */ color: oklch(31.3% 0.130 320.3);
Tailwind
colors: {
  custom: {
    50: '#815687',
    500: '#4c0f58',
    950: '#000000',
  },
}
SCSS
$custom: #4c0f58;
$custom-light: #815687;
$custom-dark: #000000;
JSON
{
  "hex": "#4c0f58",
  "rgb": {
    "r": 76,
    "g": 15,
    "b": 88
  },
  "hsl": {
    "h": 290.137,
    "s": 70.874,
    "l": 20.196
  },
  "oklch": {
    "l": 0.31265,
    "c": 0.12962,
    "h": 320.3
  },
  "luminance": 0.02583
}

Semantic roles & 50–950 ramp

primary
#4C0F58
secondary
#419231
accent
#EE3A58
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B030B
muted
#7C787C

Preview Lab

Preview with #4C0F58

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

Preview Lab → · Contrast checker → · Palette generator →

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