#4B174B#4B174B

#4B174B is a dark, moderate purple. Relative luminance 0.026; OKLCH L 31.1% C 0.106 H 327.8°. Best body text is #FFFFFF at 13.78:1 contrast (WCAG AA passes).

Color values

HEX#4B174B
RGBrgb(75, 23, 75)
HSLhsl(300, 53%, 19%)
HSVhsv(300, 69%, 29%)
CMYKcmyk(0%, 69.3%, 0%, 70.6%)
CIE-LABlab(18.44, 32.14, -20.45)
CIE-LCHlch(18.44, 38.10, 327.53°)
OKLaboklab(31.06% 0.0895 -0.0565)
OKLCHoklch(31.06% 0.106 327.8)
XYZxyz(4.4780, 2.6169, 6.9245)
Luminance0.0262 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B174B #174B17
analogous
#31174B #4B174B #4B1731
triadic
#4B174B #4B4B17 #174B4B
tetradic
#4B174B #4B3117 #174B17 #17314B
square
#4B174B #4B3117 #174B17 #17314B
split-complementary
#4B174B #314B17 #174B31
monochromatic
#170717 #1C091C #4B174B #7A257A #A934A9

Accessibility & contrast

On white

13.78
#4B174B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#4B174B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B174B
13.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B174B#FFFFFF#000000##FFFFFF
##4B174B1.0013.781.5213.78
#FFFFFF13.781.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10294D
Deuteranopia (green-blind)
#232F4A
Tritanopia (blue-blind)
#4D1E2E
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #4b174b;
/* rgb */ color: rgb(75, 23, 75);
/* oklch */ color: oklch(31.1% 0.106 327.8);
Tailwind
colors: {
  custom: {
    50: '#7f597d',
    500: '#4b174b',
    950: '#000000',
  },
}
SCSS
$custom: #4b174b;
$custom-light: #7f597d;
$custom-dark: #000000;
JSON
{
  "hex": "#4b174b",
  "rgb": {
    "r": 75,
    "g": 23,
    "b": 75
  },
  "hsl": {
    "h": 300,
    "s": 53.061,
    "l": 19.216
  },
  "oklch": {
    "l": 0.31058,
    "c": 0.10587,
    "h": 327.8
  },
  "luminance": 0.02617
}

Semantic roles & 50–950 ramp

primary
#4B174B
secondary
#3C823C
accent
#DC4B4B
background
#F7F5F7
surface
#EEE9EE
border
#C9C5C9
text
#0A0409
muted
#7C797B

Preview Lab

Preview with #4B174B

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

Preview Lab → · Contrast checker → · Palette generator →

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