#4C125B#4C125B

#4C125B is a dark, vivid purple. Relative luminance 0.027; OKLCH L 31.8% C 0.129 H 318.4°. Best body text is #FFFFFF at 13.59:1 contrast (WCAG AA passes).

Color values

HEX#4C125B
RGBrgb(76, 18, 91)
HSLhsl(288, 67%, 21%)
HSVhsv(288, 80%, 36%)
CMYKcmyk(16.5%, 80.2%, 0%, 64.3%)
CIE-LABlab(18.91, 37.95, -30.51)
CIE-LCHlch(18.91, 48.69, 321.20°)
OKLaboklab(31.77% 0.0964 -0.0857)
OKLCHoklch(31.77% 0.129 318.4)
XYZxyz(5.0849, 2.7247, 10.1536)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C125B #215B12
analogous
#28125B #4C125B #5B1246
triadic
#4C125B #5B4C12 #125B4C
tetradic
#4C125B #5B2812 #215B12 #12465B
square
#4C125B #5B2812 #215B12 #12465B
split-complementary
#4C125B #465B12 #125B28
monochromatic
#15051A #210828 #4C125B #771C8E #A126C1

Accessibility & contrast

On white

13.59
#4C125B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#4C125B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C125B
13.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C125B#FFFFFF#000000##FFFFFF
##4C125B1.0013.591.5413.59
#FFFFFF13.591.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5D
Deuteranopia (green-blind)
#163059
Tritanopia (blue-blind)
#4C2136
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #4c125b;
/* rgb */ color: rgb(76, 18, 91);
/* oklch */ color: oklch(31.8% 0.129 318.4);
Tailwind
colors: {
  custom: {
    50: '#81578a',
    500: '#4c125b',
    950: '#000000',
  },
}
SCSS
$custom: #4c125b;
$custom-light: #81578a;
$custom-dark: #000000;
JSON
{
  "hex": "#4c125b",
  "rgb": {
    "r": 76,
    "g": 18,
    "b": 91
  },
  "hsl": {
    "h": 287.671,
    "s": 66.972,
    "l": 21.373
  },
  "oklch": {
    "l": 0.31771,
    "c": 0.12903,
    "h": 318.4
  },
  "luminance": 0.02724
}

Semantic roles & 50–950 ramp

primary
#4C125B
secondary
#499335
accent
#EA3E61
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B030C
muted
#7C787D

Preview Lab

Preview with #4C125B

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

Preview Lab → · Contrast checker → · Palette generator →

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