#4D156E#4D156E

#4D156E is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.145 H 309.1°. Best body text is #FFFFFF at 12.74:1 contrast (WCAG AA passes).

Color values

HEX#4D156E
RGBrgb(77, 21, 110)
HSLhsl(278, 68%, 26%)
HSVhsv(278, 81%, 43%)
CMYKcmyk(30%, 80.9%, 0%, 56.9%)
CIE-LABlab(20.98, 41.25, -39.65)
CIE-LCHlch(20.98, 57.22, 316.13°)
OKLaboklab(33.74% 0.0914 -0.1126)
OKLCHoklch(33.74% 0.145 309.1)
XYZxyz(6.1426, 3.2400, 15.0506)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D156E #366E15
analogous
#20156E #4D156E #6E1562
triadic
#4D156E #6E4D15 #156E4D
tetradic
#4D156E #6E2015 #366E15 #15626E
square
#4D156E #6E2015 #366E15 #15626E
split-complementary
#4D156E #626E15 #156E20
monochromatic
#12051A #290B3B #4D156E #711FA1 #9529D5

Accessibility & contrast

On white

12.74
#4D156E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#4D156E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D156E
12.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D156E#FFFFFF#000000##FFFFFF
##4D156E1.0012.741.6512.74
#FFFFFF12.741.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003070
Deuteranopia (green-blind)
#00336C
Tritanopia (blue-blind)
#482B41
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4d156e;
/* rgb */ color: rgb(77, 21, 110);
/* oklch */ color: oklch(33.7% 0.145 309.1);
Tailwind
colors: {
  custom: {
    50: '#835a98',
    500: '#4d156e',
    950: '#000000',
  },
}
SCSS
$custom: #4d156e;
$custom-light: #835a98;
$custom-dark: #000000;
JSON
{
  "hex": "#4d156e",
  "rgb": {
    "r": 77,
    "g": 21,
    "b": 110
  },
  "hsl": {
    "h": 277.753,
    "s": 67.939,
    "l": 25.686
  },
  "oklch": {
    "l": 0.33741,
    "c": 0.14501,
    "h": 309.1
  },
  "luminance": 0.0324
}

Semantic roles & 50–950 ramp

primary
#4D156E
secondary
#62A43A
accent
#EB3D7D
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4D156E

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

Preview Lab → · Contrast checker → · Palette generator →

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