#4C145D#4C145D

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

Color values

HEX#4C145D
RGBrgb(76, 20, 93)
HSLhsl(286, 65%, 22%)
HSVhsv(286, 78%, 36%)
CMYKcmyk(18.3%, 78.5%, 0%, 63.5%)
CIE-LABlab(19.34, 37.57, -31.15)
CIE-LCHlch(19.34, 48.80, 320.33°)
OKLaboklab(32.13% 0.0941 -0.0876)
OKLCHoklch(32.13% 0.129 317)
XYZxyz(5.2061, 2.8273, 10.6253)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C145D #255D14
analogous
#27145D #4C145D #5D144A
triadic
#4C145D #5D4C14 #145D4C
tetradic
#4C145D #5D2714 #255D14 #144A5D
square
#4C145D #5D2714 #255D14 #144A5D
split-complementary
#4C145D #4A5D14 #145D27
monochromatic
#150519 #23092B #4C145D #751F8F #9E2AC2

Accessibility & contrast

On white

13.42
#4C145D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#4C145D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C145D
13.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C145D#FFFFFF#000000##FFFFFF
##4C145D1.0013.421.5713.42
#FFFFFF13.421.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5F
Deuteranopia (green-blind)
#15315B
Tritanopia (blue-blind)
#4B2337
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #4c145d;
/* rgb */ color: rgb(76, 20, 93);
/* oklch */ color: oklch(32.1% 0.129 317.0);
Tailwind
colors: {
  custom: {
    50: '#81588b',
    500: '#4c145d',
    950: '#000000',
  },
}
SCSS
$custom: #4c145d;
$custom-light: #81588b;
$custom-dark: #000000;
JSON
{
  "hex": "#4c145d",
  "rgb": {
    "r": 76,
    "g": 20,
    "b": 93
  },
  "hsl": {
    "h": 286.027,
    "s": 64.602,
    "l": 22.157
  },
  "oklch": {
    "l": 0.32126,
    "c": 0.12855,
    "h": 317
  },
  "luminance": 0.02827
}

Semantic roles & 50–950 ramp

primary
#4C145D
secondary
#4E9538
accent
#E84067
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4C145D

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

Preview Lab → · Contrast checker → · Palette generator →

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