#4B157D#4B157D

#4B157D is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.8% C 0.160 H 301.7°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#4B157D
RGBrgb(75, 21, 125)
HSLhsl(271, 71%, 29%)
HSVhsv(271, 83%, 49%)
CMYKcmyk(40%, 83.2%, 0%, 51%)
CIE-LABlab(21.99, 44.53, -47.64)
CIE-LCHlch(21.99, 65.22, 313.07°)
OKLaboklab(34.79% 0.0842 -0.1361)
OKLCHoklch(34.79% 0.16 301.7)
XYZxyz(6.8706, 3.5128, 19.7141)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B157D #477D15
analogous
#17157D #4B157D #7D157B
triadic
#4B157D #7D4B15 #157D4B
tetradic
#4B157D #7D1715 #477D15 #157B7D
square
#4B157D #7D1715 #477D15 #157B7D
split-complementary
#4B157D #7B7D15 #157D17
monochromatic
#10041A #2C0C49 #4B157D #6A1EB1 #8A30DC

Accessibility & contrast

On white

12.33
#4B157D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#4B157D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B157D
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B157D#FFFFFF#000000##FFFFFF
##4B157D1.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003480
Deuteranopia (green-blind)
#00347B
Tritanopia (blue-blind)
#40324A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4b157d;
/* rgb */ color: rgb(75, 21, 125);
/* oklch */ color: oklch(34.8% 0.160 301.7);
Tailwind
colors: {
  custom: {
    50: '#835aa4',
    500: '#4b157d',
    950: '#000000',
  },
}
SCSS
$custom: #4b157d;
$custom-light: #835aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#4b157d",
  "rgb": {
    "r": 75,
    "g": 21,
    "b": 125
  },
  "hsl": {
    "h": 271.154,
    "s": 71.233,
    "l": 28.627
  },
  "oklch": {
    "l": 0.34791,
    "c": 0.16005,
    "h": 301.7
  },
  "luminance": 0.03513
}

Semantic roles & 50–950 ramp

primary
#4B157D
secondary
#75B23C
accent
#EE3A90
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4B157D

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

Preview Lab → · Contrast checker → · Palette generator →

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