#4B158D#4B158D

#4B158D is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.3% C 0.177 H 296.4°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#4B158D
RGBrgb(75, 21, 141)
HSLhsl(267, 74%, 32%)
HSVhsv(267, 85%, 55%)
CMYKcmyk(46.8%, 85.1%, 0%, 44.7%)
CIE-LABlab(23.52, 48.55, -55.20)
CIE-LCHlch(23.52, 73.51, 311.33°)
OKLaboklab(36.32% 0.0786 -0.1583)
OKLCHoklch(36.32% 0.177 296.4)
XYZxyz(7.9762, 3.9551, 25.5373)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B158D #578D15
analogous
#151B8D #4B158D #87158D
triadic
#4B158D #8D4B15 #158D4B
tetradic
#4B158D #8D151B #578D15 #158D87
square
#4B158D #8D151B #578D15 #158D87
split-complementary
#4B158D #8D8715 #1B8D15
monochromatic
#120522 #2F0D58 #4B158D #671DC2 #863BE2

Accessibility & contrast

On white

11.73
#4B158D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#4B158D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B158D
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B158D#FFFFFF#000000##FFFFFF
##4B158D1.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003990
Deuteranopia (green-blind)
#00368B
Tritanopia (blue-blind)
#383953
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4b158d;
/* rgb */ color: rgb(75, 21, 141);
/* oklch */ color: oklch(36.3% 0.177 296.4);
Tailwind
colors: {
  custom: {
    50: '#855baf',
    500: '#4b158d',
    950: '#000000',
  },
}
SCSS
$custom: #4b158d;
$custom-light: #855baf;
$custom-dark: #000000;
JSON
{
  "hex": "#4b158d",
  "rgb": {
    "r": 75,
    "g": 21,
    "b": 141
  },
  "hsl": {
    "h": 267,
    "s": 74.074,
    "l": 31.765
  },
  "oklch": {
    "l": 0.36318,
    "c": 0.17673,
    "h": 296.4
  },
  "luminance": 0.03955
}

Semantic roles & 50–950 ramp

primary
#4B158D
secondary
#85C13D
accent
#F1379D
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0411
muted
#7D7980

Preview Lab

Preview with #4B158D

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

Preview Lab → · Contrast checker → · Palette generator →

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