#4B157F#4B157F

#4B157F is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.162 H 301.0°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#4B157F
RGBrgb(75, 21, 127)
HSLhsl(271, 72%, 29%)
HSVhsv(271, 83%, 50%)
CMYKcmyk(40.9%, 83.5%, 0%, 50.2%)
CIE-LABlab(22.18, 45.03, -48.61)
CIE-LCHlch(22.18, 66.26, 312.81°)
OKLaboklab(34.98% 0.0835 -0.1389)
OKLCHoklch(34.98% 0.162 301)
XYZxyz(6.9996, 3.5644, 20.3938)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B157F #497F15
analogous
#16157F #4B157F #7F157E
triadic
#4B157F #7F4B15 #157F4B
tetradic
#4B157F #7F1615 #497F15 #157E7F
square
#4B157F #7F1615 #497F15 #157E7F
split-complementary
#4B157F #7E7F15 #157F16
monochromatic
#10041A #2C0C4A #4B157F #6A1EB4 #8931DD

Accessibility & contrast

On white

12.26
#4B157F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#4B157F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B157F
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B157F#FFFFFF#000000##FFFFFF
##4B157F1.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#00347D
Tritanopia (blue-blind)
#3F334B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4b157f;
/* rgb */ color: rgb(75, 21, 127);
/* oklch */ color: oklch(35.0% 0.162 301.0);
Tailwind
colors: {
  custom: {
    50: '#835aa5',
    500: '#4b157f',
    950: '#000000',
  },
}
SCSS
$custom: #4b157f;
$custom-light: #835aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#4b157f",
  "rgb": {
    "r": 75,
    "g": 21,
    "b": 127
  },
  "hsl": {
    "h": 270.566,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.34976,
    "c": 0.16213,
    "h": 301
  },
  "luminance": 0.03564
}

Semantic roles & 50–950 ramp

primary
#4B157F
secondary
#77B43C
accent
#EE3992
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4B157F

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

Preview Lab → · Contrast checker → · Palette generator →

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