#4C136D#4C136D

#4C136D is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.146 H 309.1°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).

Color values

HEX#4C136D
RGBrgb(76, 19, 109)
HSLhsl(278, 70%, 25%)
HSVhsv(278, 83%, 43%)
CMYKcmyk(30.3%, 82.6%, 0%, 57.3%)
CIE-LABlab(20.47, 41.61, -39.85)
CIE-LCHlch(20.47, 57.61, 316.24°)
OKLaboklab(33.32% 0.092 -0.1131)
OKLCHoklch(33.32% 0.146 309.1)
XYZxyz(5.9731, 3.1065, 14.7500)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C136D #346D13
analogous
#1F136D #4C136D #6D1361
triadic
#4C136D #6D4C13 #136D4C
tetradic
#4C136D #6D1F13 #346D13 #13616D
square
#4C136D #6D1F13 #346D13 #13616D
split-complementary
#4C136D #616D13 #136D1F
monochromatic
#12051A #280A39 #4C136D #701CA1 #9525D5

Accessibility & contrast

On white

12.95
#4C136D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#4C136D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C136D
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C136D#FFFFFF#000000##FFFFFF
##4C136D1.0012.951.6212.95
#FFFFFF12.951.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6F
Deuteranopia (green-blind)
#00326B
Tritanopia (blue-blind)
#472A40
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4c136d;
/* rgb */ color: rgb(76, 19, 109);
/* oklch */ color: oklch(33.3% 0.146 309.1);
Tailwind
colors: {
  custom: {
    50: '#825898',
    500: '#4c136d',
    950: '#000000',
  },
}
SCSS
$custom: #4c136d;
$custom-light: #825898;
$custom-dark: #000000;
JSON
{
  "hex": "#4c136d",
  "rgb": {
    "r": 76,
    "g": 19,
    "b": 109
  },
  "hsl": {
    "h": 278,
    "s": 70.313,
    "l": 25.098
  },
  "oklch": {
    "l": 0.3332,
    "c": 0.14583,
    "h": 309.1
  },
  "luminance": 0.03106
}

Semantic roles & 50–950 ramp

primary
#4C136D
secondary
#5FA438
accent
#ED3B7C
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4C136D

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

Preview Lab → · Contrast checker → · Palette generator →

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