#4C125A#4C125A

#4C125A is a dark, vivid purple. Relative luminance 0.027; OKLCH L 31.7% C 0.128 H 318.9°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).

Color values

HEX#4C125A
RGBrgb(76, 18, 90)
HSLhsl(288, 67%, 21%)
HSVhsv(288, 80%, 35%)
CMYKcmyk(15.6%, 80%, 0%, 64.7%)
CIE-LABlab(18.83, 37.73, -29.96)
CIE-LCHlch(18.83, 48.18, 321.55°)
OKLaboklab(31.7% 0.0965 -0.0841)
OKLCHoklch(31.7% 0.128 318.9)
XYZxyz(5.0420, 2.7075, 9.9279)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C125A #205A12
analogous
#28125A #4C125A #5A1244
triadic
#4C125A #5A4C12 #125A4C
tetradic
#4C125A #5A2812 #205A12 #12445A
square
#4C125A #5A2812 #205A12 #12445A
split-complementary
#4C125A #445A12 #125A28
monochromatic
#16051A #210827 #4C125A #771C8D #A226C0

Accessibility & contrast

On white

13.62
#4C125A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C125A
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C125A#FFFFFF#000000##FFFFFF
##4C125A1.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5C
Deuteranopia (green-blind)
#173058
Tritanopia (blue-blind)
#4C2135
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #4c125a;
/* rgb */ color: rgb(76, 18, 90);
/* oklch */ color: oklch(31.7% 0.128 318.9);
Tailwind
colors: {
  custom: {
    50: '#815789',
    500: '#4c125a',
    950: '#000000',
  },
}
SCSS
$custom: #4c125a;
$custom-light: #815789;
$custom-dark: #000000;
JSON
{
  "hex": "#4c125a",
  "rgb": {
    "r": 76,
    "g": 18,
    "b": 90
  },
  "hsl": {
    "h": 288.333,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.31696,
    "c": 0.12805,
    "h": 318.9
  },
  "luminance": 0.02707
}

Semantic roles & 50–950 ramp

primary
#4C125A
secondary
#479335
accent
#EA3E60
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B030B
muted
#7C787C

Preview Lab

Preview with #4C125A

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

Preview Lab → · Contrast checker → · Palette generator →

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