#4D136B#4D136B

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

Color values

HEX#4D136B
RGBrgb(77, 19, 107)
HSLhsl(280, 70%, 25%)
HSVhsv(280, 82%, 42%)
CMYKcmyk(28%, 82.2%, 0%, 58%)
CIE-LABlab(20.46, 41.34, -38.54)
CIE-LCHlch(20.46, 56.52, 317.00°)
OKLaboklab(33.3% 0.094 -0.1093)
OKLCHoklch(33.3% 0.144 310.7)
XYZxyz(5.9468, 3.1052, 14.1932)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D136B #316B13
analogous
#21136B #4D136B #6B135D
triadic
#4D136B #6B4D13 #136B4D
tetradic
#4D136B #6B2113 #316B13 #135D6B
square
#4D136B #6B2113 #316B13 #135D6B
split-complementary
#4D136B #5D6B13 #136B21
monochromatic
#13051A #280A37 #4D136B #721C9F #9825D3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4D136B#FFFFFF#000000##FFFFFF
##4D136B1.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)
#002F6D
Deuteranopia (green-blind)
#003269
Tritanopia (blue-blind)
#49293F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4d136b;
/* rgb */ color: rgb(77, 19, 107);
/* oklch */ color: oklch(33.3% 0.144 310.7);
Tailwind
colors: {
  custom: {
    50: '#835896',
    500: '#4d136b',
    950: '#000000',
  },
}
SCSS
$custom: #4d136b;
$custom-light: #835896;
$custom-dark: #000000;
JSON
{
  "hex": "#4d136b",
  "rgb": {
    "r": 77,
    "g": 19,
    "b": 107
  },
  "hsl": {
    "h": 279.545,
    "s": 69.841,
    "l": 24.706
  },
  "oklch": {
    "l": 0.33298,
    "c": 0.14413,
    "h": 310.7
  },
  "luminance": 0.03105
}

Semantic roles & 50–950 ramp

primary
#4D136B
secondary
#5CA238
accent
#ED3B78
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4D136B

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

Preview Lab → · Contrast checker → · Palette generator →

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