#4C125E#4C125E

#4C125E is a dark, vivid purple. Relative luminance 0.028; OKLCH L 32.0% C 0.132 H 316.7°. Best body text is #FFFFFF at 13.50:1 contrast (WCAG AA passes).

Color values

HEX#4C125E
RGBrgb(76, 18, 94)
HSLhsl(286, 68%, 22%)
HSVhsv(286, 81%, 37%)
CMYKcmyk(19.1%, 80.9%, 0%, 63.1%)
CIE-LABlab(19.13, 38.60, -32.15)
CIE-LCHlch(19.13, 50.23, 320.21°)
OKLaboklab(32% 0.096 -0.0905)
OKLCHoklch(32% 0.132 316.7)
XYZxyz(5.2169, 2.7775, 10.8488)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C125E #245E12
analogous
#26125E #4C125E #5E124A
triadic
#4C125E #5E4C12 #125E4C
tetradic
#4C125E #5E2612 #245E12 #124A5E
square
#4C125E #5E2612 #245E12 #124A5E
split-complementary
#4C125E #4A5E12 #125E26
monochromatic
#15051A #22082B #4C125E #761C91 #9F26C5

Accessibility & contrast

On white

13.50
#4C125E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C125E
13.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C125E#FFFFFF#000000##FFFFFF
##4C125E1.0013.501.5613.50
#FFFFFF13.501.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B60
Deuteranopia (green-blind)
#12305C
Tritanopia (blue-blind)
#4B2337
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #4c125e;
/* rgb */ color: rgb(76, 18, 94);
/* oklch */ color: oklch(32.0% 0.132 316.7);
Tailwind
colors: {
  custom: {
    50: '#81578c',
    500: '#4c125e',
    950: '#000000',
  },
}
SCSS
$custom: #4c125e;
$custom-light: #81578c;
$custom-dark: #000000;
JSON
{
  "hex": "#4c125e",
  "rgb": {
    "r": 76,
    "g": 18,
    "b": 94
  },
  "hsl": {
    "h": 285.789,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.32001,
    "c": 0.13196,
    "h": 316.7
  },
  "luminance": 0.02777
}

Semantic roles & 50–950 ramp

primary
#4C125E
secondary
#4C9635
accent
#EB3D66
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B030C
muted
#7C787D

Preview Lab

Preview with #4C125E

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

Preview Lab → · Contrast checker → · Palette generator →

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