#4C125C#4C125C

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

Color values

HEX#4C125C
RGBrgb(76, 18, 92)
HSLhsl(287, 67%, 22%)
HSVhsv(287, 80%, 36%)
CMYKcmyk(17.4%, 80.4%, 0%, 63.9%)
CIE-LABlab(18.98, 38.16, -31.06)
CIE-LCHlch(18.98, 49.21, 320.86°)
OKLaboklab(31.85% 0.0963 -0.0873)
OKLCHoklch(31.85% 0.13 317.8)
XYZxyz(5.1283, 2.7420, 10.3823)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C125C #225C12
analogous
#27125C #4C125C #5C1247
triadic
#4C125C #5C4C12 #125C4C
tetradic
#4C125C #5C2712 #225C12 #12475C
square
#4C125C #5C2712 #225C12 #12475C
split-complementary
#4C125C #475C12 #125C27
monochromatic
#15051A #220829 #4C125C #761C8F #A126C2

Accessibility & contrast

On white

13.56
#4C125C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#4C125C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C125C
13.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C125C#FFFFFF#000000##FFFFFF
##4C125C1.0013.561.5513.56
#FFFFFF13.561.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5E
Deuteranopia (green-blind)
#15305A
Tritanopia (blue-blind)
#4B2236
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #4c125c;
/* rgb */ color: rgb(76, 18, 92);
/* oklch */ color: oklch(31.8% 0.130 317.8);
Tailwind
colors: {
  custom: {
    50: '#81578b',
    500: '#4c125c',
    950: '#000000',
  },
}
SCSS
$custom: #4c125c;
$custom-light: #81578b;
$custom-dark: #000000;
JSON
{
  "hex": "#4c125c",
  "rgb": {
    "r": 76,
    "g": 18,
    "b": 92
  },
  "hsl": {
    "h": 287.027,
    "s": 67.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.31848,
    "c": 0.13001,
    "h": 317.8
  },
  "luminance": 0.02742
}

Semantic roles & 50–950 ramp

primary
#4C125C
secondary
#4A9435
accent
#EA3E63
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B030C
muted
#7C787D

Preview Lab

Preview with #4C125C

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

Preview Lab → · Contrast checker → · Palette generator →

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