#4B157B#4B157B

#4B157B is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.6% C 0.158 H 302.5°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#4B157B
RGBrgb(75, 21, 123)
HSLhsl(272, 71%, 28%)
HSVhsv(272, 83%, 48%)
CMYKcmyk(39%, 82.9%, 0%, 51.8%)
CIE-LABlab(21.81, 44.04, -46.67)
CIE-LCHlch(21.81, 64.17, 313.34°)
OKLaboklab(34.61% 0.0848 -0.1333)
OKLCHoklch(34.61% 0.158 302.5)
XYZxyz(6.7441, 3.4622, 19.0480)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B157B #457B15
analogous
#18157B #4B157B #7B1578
triadic
#4B157B #7B4B15 #157B4B
tetradic
#4B157B #7B1815 #457B15 #15787B
square
#4B157B #7B1815 #457B15 #15787B
split-complementary
#4B157B #787B15 #157B18
monochromatic
#10041A #2B0C47 #4B157B #6B1EAF #8A2FDB

Accessibility & contrast

On white

12.41
#4B157B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#4B157B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B157B
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B157B#FFFFFF#000000##FFFFFF
##4B157B1.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337E
Deuteranopia (green-blind)
#003479
Tritanopia (blue-blind)
#413148
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4b157b;
/* rgb */ color: rgb(75, 21, 123);
/* oklch */ color: oklch(34.6% 0.158 302.5);
Tailwind
colors: {
  custom: {
    50: '#835aa2',
    500: '#4b157b',
    950: '#000000',
  },
}
SCSS
$custom: #4b157b;
$custom-light: #835aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#4b157b",
  "rgb": {
    "r": 75,
    "g": 21,
    "b": 123
  },
  "hsl": {
    "h": 271.765,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.34607,
    "c": 0.15796,
    "h": 302.5
  },
  "luminance": 0.03462
}

Semantic roles & 50–950 ramp

primary
#4B157B
secondary
#72B03B
accent
#EE3A8F
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4B157B

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

Preview Lab → · Contrast checker → · Palette generator →

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