#4B175E#4B175E

#4B175E is a dark, vivid purple. Relative luminance 0.029; OKLCH L 32.4% C 0.125 H 315.4°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#4B175E
RGBrgb(75, 23, 94)
HSLhsl(284, 61%, 23%)
HSVhsv(284, 76%, 37%)
CMYKcmyk(20.2%, 75.5%, 0%, 63.1%)
CIE-LABlab(19.71, 36.24, -31.23)
CIE-LCHlch(19.71, 47.84, 319.25°)
OKLaboklab(32.38% 0.0892 -0.0879)
OKLCHoklch(32.38% 0.125 315.4)
XYZxyz(5.2281, 2.9170, 10.8751)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B175E #2A5E17
analogous
#28175E #4B175E #5E174D
triadic
#4B175E #5E4B17 #175E4B
tetradic
#4B175E #5E2817 #2A5E17 #174D5E
square
#4B175E #5E2817 #2A5E17 #174D5E
split-complementary
#4B175E #4D5E17 #175E28
monochromatic
#140619 #240B2D #4B175E #72238F #992FC0

Accessibility & contrast

On white

13.26
#4B175E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#4B175E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B175E
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B175E#FFFFFF#000000##FFFFFF
##4B175E1.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D60
Deuteranopia (green-blind)
#15315C
Tritanopia (blue-blind)
#4A2639
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #4b175e;
/* rgb */ color: rgb(75, 23, 94);
/* oklch */ color: oklch(32.4% 0.125 315.4);
Tailwind
colors: {
  custom: {
    50: '#80598c',
    500: '#4b175e',
    950: '#000000',
  },
}
SCSS
$custom: #4b175e;
$custom-light: #80598c;
$custom-dark: #000000;
JSON
{
  "hex": "#4b175e",
  "rgb": {
    "r": 75,
    "g": 23,
    "b": 94
  },
  "hsl": {
    "h": 283.944,
    "s": 60.684,
    "l": 22.941
  },
  "oklch": {
    "l": 0.32378,
    "c": 0.12522,
    "h": 315.4
  },
  "luminance": 0.02917
}

Semantic roles & 50–950 ramp

primary
#4B175E
secondary
#54953C
accent
#E4446F
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0A040C
muted
#7C797D

Preview Lab

Preview with #4B175E

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

Preview Lab → · Contrast checker → · Palette generator →

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