#4D138E#4D138E

#4D138E is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.5% C 0.180 H 297.4°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#4D138E
RGBrgb(77, 19, 142)
HSLhsl(268, 76%, 32%)
HSVhsv(268, 87%, 56%)
CMYKcmyk(45.8%, 86.6%, 0%, 44.3%)
CIE-LABlab(23.66, 49.76, -55.58)
CIE-LCHlch(23.66, 74.60, 311.83°)
OKLaboklab(36.5% 0.0827 -0.1593)
OKLCHoklch(36.5% 0.18 297.4)
XYZxyz(8.1746, 3.9964, 25.9266)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D138E #548E13
analogous
#13168E #4D138E #8B138E
triadic
#4D138E #8E4D13 #138E4D
tetradic
#4D138E #8E1316 #548E13 #138E8B
square
#4D138E #8E1316 #548E13 #138E8B
split-complementary
#4D138E #8E8B13 #168E13
monochromatic
#120522 #300C58 #4D138E #6A1AC4 #8937E4

Accessibility & contrast

On white

11.67
#4D138E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#4D138E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D138E
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D138E#FFFFFF#000000##FFFFFF
##4D138E1.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003991
Deuteranopia (green-blind)
#00378C
Tritanopia (blue-blind)
#3B3853
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4d138e;
/* rgb */ color: rgb(77, 19, 142);
/* oklch */ color: oklch(36.5% 0.180 297.4);
Tailwind
colors: {
  custom: {
    50: '#865bb0',
    500: '#4d138e',
    950: '#000000',
  },
}
SCSS
$custom: #4d138e;
$custom-light: #865bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#4d138e",
  "rgb": {
    "r": 77,
    "g": 19,
    "b": 142
  },
  "hsl": {
    "h": 268.293,
    "s": 76.398,
    "l": 31.569
  },
  "oklch": {
    "l": 0.36501,
    "c": 0.17951,
    "h": 297.4
  },
  "luminance": 0.03997
}

Semantic roles & 50–950 ramp

primary
#4D138E
secondary
#82C23B
accent
#F33599
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0411
muted
#7D7980

Preview Lab

Preview with #4D138E

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

Preview Lab → · Contrast checker → · Palette generator →

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