#4B175B#4B175B

#4B175B is a dark, vivid purple. Relative luminance 0.029; OKLCH L 32.2% C 0.122 H 317.1°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).

Color values

HEX#4B175B
RGBrgb(75, 23, 91)
HSLhsl(286, 60%, 22%)
HSVhsv(286, 75%, 36%)
CMYKcmyk(17.6%, 74.7%, 0%, 64.3%)
CIE-LABlab(19.49, 35.56, -29.58)
CIE-LCHlch(19.49, 46.25, 320.24°)
OKLaboklab(32.15% 0.0895 -0.0831)
OKLCHoklch(32.15% 0.122 317.1)
XYZxyz(5.0961, 2.8642, 10.1799)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B175B #275B17
analogous
#29175B #4B175B #5B1749
triadic
#4B175B #5B4B17 #175B4B
tetradic
#4B175B #5B2917 #275B17 #17495B
square
#4B175B #5B2917 #275B17 #17495B
split-complementary
#4B175B #495B17 #175B29
monochromatic
#140618 #230B2A #4B175B #73238C #9C30BD

Accessibility & contrast

On white

13.35
#4B175B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#4B175B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B175B
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B175B#FFFFFF#000000##FFFFFF
##4B175B1.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C5D
Deuteranopia (green-blind)
#183159
Tritanopia (blue-blind)
#4A2437
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #4b175b;
/* rgb */ color: rgb(75, 23, 91);
/* oklch */ color: oklch(32.2% 0.122 317.1);
Tailwind
colors: {
  custom: {
    50: '#80598a',
    500: '#4b175b',
    950: '#000000',
  },
}
SCSS
$custom: #4b175b;
$custom-light: #80598a;
$custom-dark: #000000;
JSON
{
  "hex": "#4b175b",
  "rgb": {
    "r": 75,
    "g": 23,
    "b": 91
  },
  "hsl": {
    "h": 285.882,
    "s": 59.649,
    "l": 22.353
  },
  "oklch": {
    "l": 0.32154,
    "c": 0.12208,
    "h": 317.1
  },
  "luminance": 0.02864
}

Semantic roles & 50–950 ramp

primary
#4B175B
secondary
#50923C
accent
#E3456A
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0A040C
muted
#7C797D

Preview Lab

Preview with #4B175B

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

Preview Lab → · Contrast checker → · Palette generator →

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