#4C125F#4C125F

#4C125F is a dark, vivid purple. Relative luminance 0.028; OKLCH L 32.1% C 0.133 H 316.1°. Best body text is #FFFFFF at 13.47:1 contrast (WCAG AA passes).

Color values

HEX#4C125F
RGBrgb(76, 18, 95)
HSLhsl(285, 68%, 22%)
HSVhsv(285, 81%, 37%)
CMYKcmyk(20%, 81.1%, 0%, 62.7%)
CIE-LABlab(19.21, 38.82, -32.69)
CIE-LCHlch(19.21, 50.75, 319.89°)
OKLaboklab(32.08% 0.0959 -0.0921)
OKLCHoklch(32.08% 0.133 316.1)
XYZxyz(5.2620, 2.7955, 11.0867)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C125F #255F12
analogous
#26125F #4C125F #5F124C
triadic
#4C125F #5F4C12 #125F4C
tetradic
#4C125F #5F2612 #255F12 #124C5F
square
#4C125F #5F2612 #255F12 #124C5F
split-complementary
#4C125F #4C5F12 #125F26
monochromatic
#15051A #23082C #4C125F #751C92 #9E25C6

Accessibility & contrast

On white

13.47
#4C125F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#4C125F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C125F
13.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C125F#FFFFFF#000000##FFFFFF
##4C125F1.0013.471.5613.47
#FFFFFF13.471.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B61
Deuteranopia (green-blind)
#11305D
Tritanopia (blue-blind)
#4B2338
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #4c125f;
/* rgb */ color: rgb(76, 18, 95);
/* oklch */ color: oklch(32.1% 0.133 316.1);
Tailwind
colors: {
  custom: {
    50: '#81578d',
    500: '#4c125f',
    950: '#000000',
  },
}
SCSS
$custom: #4c125f;
$custom-light: #81578d;
$custom-dark: #000000;
JSON
{
  "hex": "#4c125f",
  "rgb": {
    "r": 76,
    "g": 18,
    "b": 95
  },
  "hsl": {
    "h": 285.195,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.32079,
    "c": 0.13295,
    "h": 316.1
  },
  "luminance": 0.02795
}

Semantic roles & 50–950 ramp

primary
#4C125F
secondary
#4E9736
accent
#EB3D68
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B030C
muted
#7C787D

Preview Lab

Preview with #4C125F

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

Preview Lab → · Contrast checker → · Palette generator →

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