#4B156A#4B156A

#4B156A is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.1% C 0.140 H 309.6°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).

Color values

HEX#4B156A
RGBrgb(75, 21, 106)
HSLhsl(278, 67%, 25%)
HSVhsv(278, 80%, 42%)
CMYKcmyk(29.2%, 80.2%, 0%, 58.4%)
CIE-LABlab(20.33, 39.91, -38.11)
CIE-LCHlch(20.33, 55.18, 316.32°)
OKLaboklab(33.12% 0.0894 -0.1081)
OKLCHoklch(33.12% 0.14 309.6)
XYZxyz(5.7708, 3.0729, 13.9220)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B156A #346A15
analogous
#21156A #4B156A #6A155E
triadic
#4B156A #6A4B15 #156A4B
tetradic
#4B156A #6A2115 #346A15 #155E6A
square
#4B156A #6A2115 #346A15 #155E6A
split-complementary
#4B156A #5E6A15 #156A21
monochromatic
#12051A #270B37 #4B156A #6F1F9D #9329D0

Accessibility & contrast

On white

13.01
#4B156A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#4B156A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B156A
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B156A#FFFFFF#000000##FFFFFF
##4B156A1.0013.011.6113.01
#FFFFFF13.011.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6C
Deuteranopia (green-blind)
#003268
Tritanopia (blue-blind)
#462A3F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4b156a;
/* rgb */ color: rgb(75, 21, 106);
/* oklch */ color: oklch(33.1% 0.140 309.6);
Tailwind
colors: {
  custom: {
    50: '#815995',
    500: '#4b156a',
    950: '#000000',
  },
}
SCSS
$custom: #4b156a;
$custom-light: #815995;
$custom-dark: #000000;
JSON
{
  "hex": "#4b156a",
  "rgb": {
    "r": 75,
    "g": 21,
    "b": 106
  },
  "hsl": {
    "h": 278.118,
    "s": 66.929,
    "l": 24.902
  },
  "oklch": {
    "l": 0.33116,
    "c": 0.14026,
    "h": 309.6
  },
  "luminance": 0.03073
}

Semantic roles & 50–950 ramp

primary
#4B156A
secondary
#60A13A
accent
#EA3E7D
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4B156A

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

Preview Lab → · Contrast checker → · Palette generator →

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