#4B156E#4B156E

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

Color values

HEX#4B156E
RGBrgb(75, 21, 110)
HSLhsl(276, 68%, 26%)
HSVhsv(276, 81%, 43%)
CMYKcmyk(31.8%, 80.9%, 0%, 56.9%)
CIE-LABlab(20.67, 40.86, -40.18)
CIE-LCHlch(20.67, 57.30, 315.49°)
OKLaboklab(33.46% 0.0884 -0.1142)
OKLCHoklch(33.46% 0.144 307.8)
XYZxyz(5.9837, 3.1581, 15.0432)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B156E #386E15
analogous
#1E156E #4B156E #6E1564
triadic
#4B156E #6E4B15 #156E4B
tetradic
#4B156E #6E1E15 #386E15 #15646E
square
#4B156E #6E1E15 #386E15 #15646E
split-complementary
#4B156E #646E15 #156E1E
monochromatic
#12051A #280B3B #4B156E #6E1FA1 #9129D5

Accessibility & contrast

On white

12.87
#4B156E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4B156E
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B156E#FFFFFF#000000##FFFFFF
##4B156E1.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4b156e;
/* rgb */ color: rgb(75, 21, 110);
/* oklch */ color: oklch(33.5% 0.144 307.8);
Tailwind
colors: {
  custom: {
    50: '#815998',
    500: '#4b156e',
    950: '#000000',
  },
}
SCSS
$custom: #4b156e;
$custom-light: #815998;
$custom-dark: #000000;
JSON
{
  "hex": "#4b156e",
  "rgb": {
    "r": 75,
    "g": 21,
    "b": 110
  },
  "hsl": {
    "h": 276.404,
    "s": 67.939,
    "l": 25.686
  },
  "oklch": {
    "l": 0.33455,
    "c": 0.14442,
    "h": 307.8
  },
  "luminance": 0.03158
}

Semantic roles & 50–950 ramp

primary
#4B156E
secondary
#64A43A
accent
#EB3D81
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4B156E

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

Preview Lab → · Contrast checker → · Palette generator →

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