#4C145E#4C145E

#4C145E is a dark, vivid purple. Relative luminance 0.028; OKLCH L 32.2% C 0.130 H 316.5°. Best body text is #FFFFFF at 13.38:1 contrast (WCAG AA passes).

Color values

HEX#4C145E
RGBrgb(76, 20, 94)
HSLhsl(285, 65%, 22%)
HSVhsv(285, 79%, 37%)
CMYKcmyk(19.1%, 78.7%, 0%, 63.1%)
CIE-LABlab(19.41, 37.79, -31.69)
CIE-LCHlch(19.41, 49.32, 320.01°)
OKLaboklab(32.2% 0.0939 -0.0892)
OKLCHoklch(32.2% 0.13 316.5)
XYZxyz(5.2507, 2.8452, 10.8601)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C145E #265E14
analogous
#27145E #4C145E #5E144B
triadic
#4C145E #5E4C14 #145E4C
tetradic
#4C145E #5E2714 #265E14 #144B5E
square
#4C145E #5E2714 #265E14 #144B5E
split-complementary
#4C145E #4B5E14 #145E27
monochromatic
#140519 #23092C #4C145E #751F90 #9E29C3

Accessibility & contrast

On white

13.38
#4C145E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C145E
13.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C145E#FFFFFF#000000##FFFFFF
##4C145E1.0013.381.5713.38
#FFFFFF13.381.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C60
Deuteranopia (green-blind)
#14315C
Tritanopia (blue-blind)
#4B2438
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #4c145e;
/* rgb */ color: rgb(76, 20, 94);
/* oklch */ color: oklch(32.2% 0.130 316.5);
Tailwind
colors: {
  custom: {
    50: '#81588c',
    500: '#4c145e',
    950: '#000000',
  },
}
SCSS
$custom: #4c145e;
$custom-light: #81588c;
$custom-dark: #000000;
JSON
{
  "hex": "#4c145e",
  "rgb": {
    "r": 76,
    "g": 20,
    "b": 94
  },
  "hsl": {
    "h": 285.405,
    "s": 64.912,
    "l": 22.353
  },
  "oklch": {
    "l": 0.32202,
    "c": 0.12955,
    "h": 316.5
  },
  "luminance": 0.02845
}

Semantic roles & 50–950 ramp

primary
#4C145E
secondary
#4F9638
accent
#E84069
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4C145E

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

Preview Lab → · Contrast checker → · Palette generator →

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