#4C136B#4C136B

#4C136B is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.1% C 0.144 H 310.0°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).

Color values

HEX#4C136B
RGBrgb(76, 19, 107)
HSLhsl(279, 70%, 25%)
HSVhsv(279, 82%, 42%)
CMYKcmyk(29%, 82.2%, 0%, 58%)
CIE-LABlab(20.30, 41.14, -38.82)
CIE-LCHlch(20.30, 56.56, 316.67°)
OKLaboklab(33.15% 0.0925 -0.1101)
OKLCHoklch(33.15% 0.144 310)
XYZxyz(5.8667, 3.0639, 14.1894)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C136B #326B13
analogous
#20136B #4C136B #6B135E
triadic
#4C136B #6B4C13 #136B4C
tetradic
#4C136B #6B2013 #326B13 #135E6B
square
#4C136B #6B2013 #326B13 #135E6B
split-complementary
#4C136B #5E6B13 #136B20
monochromatic
#12051A #270A37 #4C136B #711C9F #9625D3

Accessibility & contrast

On white

13.02
#4C136B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#4C136B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C136B
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C136B#FFFFFF#000000##FFFFFF
##4C136B1.0013.021.6113.02
#FFFFFF13.021.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6D
Deuteranopia (green-blind)
#003269
Tritanopia (blue-blind)
#48293F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4c136b;
/* rgb */ color: rgb(76, 19, 107);
/* oklch */ color: oklch(33.1% 0.144 310.0);
Tailwind
colors: {
  custom: {
    50: '#825896',
    500: '#4c136b',
    950: '#000000',
  },
}
SCSS
$custom: #4c136b;
$custom-light: #825896;
$custom-dark: #000000;
JSON
{
  "hex": "#4c136b",
  "rgb": {
    "r": 76,
    "g": 19,
    "b": 107
  },
  "hsl": {
    "h": 278.864,
    "s": 69.841,
    "l": 24.706
  },
  "oklch": {
    "l": 0.3315,
    "c": 0.14382,
    "h": 310
  },
  "luminance": 0.03064
}

Semantic roles & 50–950 ramp

primary
#4C136B
secondary
#5DA238
accent
#ED3B7A
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4C136B

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

Preview Lab → · Contrast checker → · Palette generator →

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