#4B156B#4B156B

#4B156B is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.141 H 309.1°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#4B156B
RGBrgb(75, 21, 107)
HSLhsl(278, 67%, 25%)
HSVhsv(278, 80%, 42%)
CMYKcmyk(29.9%, 80.4%, 0%, 58%)
CIE-LABlab(20.42, 40.15, -38.63)
CIE-LCHlch(20.42, 55.71, 316.10°)
OKLaboklab(33.2% 0.0891 -0.1096)
OKLCHoklch(33.2% 0.141 309.1)
XYZxyz(5.8231, 3.0938, 14.1975)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B156B #356B15
analogous
#20156B #4B156B #6B1560
triadic
#4B156B #6B4B15 #156B4B
tetradic
#4B156B #6B2015 #356B15 #15606B
square
#4B156B #6B2015 #356B15 #15606B
split-complementary
#4B156B #606B15 #156B20
monochromatic
#12051A #270B38 #4B156B #6F1F9E #9329D1

Accessibility & contrast

On white

12.97
#4B156B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#4B156B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B156B
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B156B#FFFFFF#000000##FFFFFF
##4B156B1.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4b156b;
/* rgb */ color: rgb(75, 21, 107);
/* oklch */ color: oklch(33.2% 0.141 309.1);
Tailwind
colors: {
  custom: {
    50: '#815996',
    500: '#4b156b',
    950: '#000000',
  },
}
SCSS
$custom: #4b156b;
$custom-light: #815996;
$custom-dark: #000000;
JSON
{
  "hex": "#4b156b",
  "rgb": {
    "r": 75,
    "g": 21,
    "b": 107
  },
  "hsl": {
    "h": 277.674,
    "s": 67.188,
    "l": 25.098
  },
  "oklch": {
    "l": 0.332,
    "c": 0.1413,
    "h": 309.1
  },
  "luminance": 0.03094
}

Semantic roles & 50–950 ramp

primary
#4B156B
secondary
#61A23A
accent
#EA3E7E
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4B156B

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

Preview Lab → · Contrast checker → · Palette generator →

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