#4B156D#4B156D

#4B156D is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.4% C 0.143 H 308.2°. Best body text is #FFFFFF at 12.91:1 contrast (WCAG AA passes).

Color values

HEX#4B156D
RGBrgb(75, 21, 109)
HSLhsl(277, 68%, 25%)
HSVhsv(277, 81%, 43%)
CMYKcmyk(31.2%, 80.7%, 0%, 57.3%)
CIE-LABlab(20.58, 40.62, -39.66)
CIE-LCHlch(20.58, 56.77, 315.69°)
OKLaboklab(33.37% 0.0887 -0.1127)
OKLCHoklch(33.37% 0.143 308.2)
XYZxyz(5.9296, 3.1364, 14.7581)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B156D #376D15
analogous
#1F156D #4B156D #6D1563
triadic
#4B156D #6D4B15 #156D4B
tetradic
#4B156D #6D1F15 #376D15 #15636D
square
#4B156D #6D1F15 #376D15 #15636D
split-complementary
#4B156D #636D15 #156D1F
monochromatic
#12051A #280B3A #4B156D #6E1FA0 #9229D4

Accessibility & contrast

On white

12.91
#4B156D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4B156D
12.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B156D#FFFFFF#000000##FFFFFF
##4B156D1.0012.911.6312.91
#FFFFFF12.911.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306F
Deuteranopia (green-blind)
#00326B
Tritanopia (blue-blind)
#462B40
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4b156d;
/* rgb */ color: rgb(75, 21, 109);
/* oklch */ color: oklch(33.4% 0.143 308.2);
Tailwind
colors: {
  custom: {
    50: '#815997',
    500: '#4b156d',
    950: '#000000',
  },
}
SCSS
$custom: #4b156d;
$custom-light: #815997;
$custom-dark: #000000;
JSON
{
  "hex": "#4b156d",
  "rgb": {
    "r": 75,
    "g": 21,
    "b": 109
  },
  "hsl": {
    "h": 276.818,
    "s": 67.692,
    "l": 25.49
  },
  "oklch": {
    "l": 0.33369,
    "c": 0.14338,
    "h": 308.2
  },
  "luminance": 0.03136
}

Semantic roles & 50–950 ramp

primary
#4B156D
secondary
#63A33A
accent
#EB3D80
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4B156D

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

Preview Lab → · Contrast checker → · Palette generator →

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