#4B157C#4B157C

#4B157C is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.159 H 302.1°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#4B157C
RGBrgb(75, 21, 124)
HSLhsl(271, 71%, 28%)
HSVhsv(271, 83%, 49%)
CMYKcmyk(39.5%, 83.1%, 0%, 51.4%)
CIE-LABlab(21.90, 44.28, -47.16)
CIE-LCHlch(21.90, 64.69, 313.20°)
OKLaboklab(34.7% 0.0845 -0.1347)
OKLCHoklch(34.7% 0.159 302.1)
XYZxyz(6.8070, 3.4874, 19.3794)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B157C #467C15
analogous
#17157C #4B157C #7C1579
triadic
#4B157C #7C4B15 #157C4B
tetradic
#4B157C #7C1715 #467C15 #15797C
square
#4B157C #7C1715 #467C15 #15797C
split-complementary
#4B157C #797C15 #157C17
monochromatic
#10041A #2B0C48 #4B157C #6B1EB0 #8A30DC

Accessibility & contrast

On white

12.37
#4B157C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4B157C
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B157C#FFFFFF#000000##FFFFFF
##4B157C1.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347F
Deuteranopia (green-blind)
#00347A
Tritanopia (blue-blind)
#403149
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4b157c;
/* rgb */ color: rgb(75, 21, 124);
/* oklch */ color: oklch(34.7% 0.159 302.1);
Tailwind
colors: {
  custom: {
    50: '#835aa3',
    500: '#4b157c',
    950: '#000000',
  },
}
SCSS
$custom: #4b157c;
$custom-light: #835aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#4b157c",
  "rgb": {
    "r": 75,
    "g": 21,
    "b": 124
  },
  "hsl": {
    "h": 271.456,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.34698,
    "c": 0.15901,
    "h": 302.1
  },
  "luminance": 0.03487
}

Semantic roles & 50–950 ramp

primary
#4B157C
secondary
#74B13C
accent
#EE3A90
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4B157C

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

Preview Lab → · Contrast checker → · Palette generator →

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