#4C185E#4C185E

#4C185E is a dark, vivid purple. Relative luminance 0.030; OKLCH L 32.6% C 0.124 H 316.0°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).

Color values

HEX#4C185E
RGBrgb(76, 24, 94)
HSLhsl(285, 59%, 23%)
HSVhsv(285, 74%, 37%)
CMYKcmyk(19.1%, 74.5%, 0%, 63.1%)
CIE-LABlab(20.04, 36.02, -30.69)
CIE-LCHlch(20.04, 47.32, 319.56°)
OKLaboklab(32.65% 0.0894 -0.0863)
OKLCHoklch(32.65% 0.124 316)
XYZxyz(5.3272, 2.9981, 10.8856)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C185E #2A5E18
analogous
#29185E #4C185E #5E184D
triadic
#4C185E #5E4C18 #185E4C
tetradic
#4C185E #5E2918 #2A5E18 #184D5E
square
#4C185E #5E2918 #2A5E18 #184D5E
split-complementary
#4C185E #4D5E18 #185E29
monochromatic
#140618 #250C2D #4C185E #73248F #9B31C0

Accessibility & contrast

On white

13.13
#4C185E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#4C185E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C185E
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C185E#FFFFFF#000000##FFFFFF
##4C185E1.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D60
Deuteranopia (green-blind)
#18325C
Tritanopia (blue-blind)
#4B2639
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #4c185e;
/* rgb */ color: rgb(76, 24, 94);
/* oklch */ color: oklch(32.6% 0.124 316.0);
Tailwind
colors: {
  custom: {
    50: '#815a8c',
    500: '#4c185e',
    950: '#000000',
  },
}
SCSS
$custom: #4c185e;
$custom-light: #815a8c;
$custom-dark: #000000;
JSON
{
  "hex": "#4c185e",
  "rgb": {
    "r": 76,
    "g": 24,
    "b": 94
  },
  "hsl": {
    "h": 284.571,
    "s": 59.322,
    "l": 23.137
  },
  "oklch": {
    "l": 0.32646,
    "c": 0.12427,
    "h": 316
  },
  "luminance": 0.02998
}

Semantic roles & 50–950 ramp

primary
#4C185E
secondary
#54943D
accent
#E3456E
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4C185E

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

Preview Lab → · Contrast checker → · Palette generator →

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