#4C136F#4C136F

#4C136F is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.5% C 0.148 H 308.2°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#4C136F
RGBrgb(76, 19, 111)
HSLhsl(277, 71%, 25%)
HSVhsv(277, 83%, 44%)
CMYKcmyk(31.5%, 82.9%, 0%, 56.5%)
CIE-LABlab(20.63, 42.08, -40.87)
CIE-LCHlch(20.63, 58.66, 315.84°)
OKLaboklab(33.49% 0.0915 -0.1162)
OKLCHoklch(33.49% 0.148 308.2)
XYZxyz(6.0820, 3.1500, 15.3235)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C136F #366F13
analogous
#1E136F #4C136F #6F1364
triadic
#4C136F #6F4C13 #136F4C
tetradic
#4C136F #6F1E13 #366F13 #13646F
square
#4C136F #6F1E13 #366F13 #13646F
split-complementary
#4C136F #646F13 #136F1E
monochromatic
#12041A #280A3B #4C136F #701CA3 #9425D8

Accessibility & contrast

On white

12.88
#4C136F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#4C136F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C136F
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C136F#FFFFFF#000000##FFFFFF
##4C136F1.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003071
Deuteranopia (green-blind)
#00326D
Tritanopia (blue-blind)
#462B41
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4c136f;
/* rgb */ color: rgb(76, 19, 111);
/* oklch */ color: oklch(33.5% 0.148 308.2);
Tailwind
colors: {
  custom: {
    50: '#825999',
    500: '#4c136f',
    950: '#000000',
  },
}
SCSS
$custom: #4c136f;
$custom-light: #825999;
$custom-dark: #000000;
JSON
{
  "hex": "#4c136f",
  "rgb": {
    "r": 76,
    "g": 19,
    "b": 111
  },
  "hsl": {
    "h": 277.174,
    "s": 70.769,
    "l": 25.49
  },
  "oklch": {
    "l": 0.33492,
    "c": 0.14786,
    "h": 308.2
  },
  "luminance": 0.0315
}

Semantic roles & 50–950 ramp

primary
#4C136F
secondary
#62A638
accent
#EE3A7E
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4C136F

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

Preview Lab → · Contrast checker → · Palette generator →

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