#4B176B#4B176B

#4B176B is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.4% C 0.139 H 308.8°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).

Color values

HEX#4B176B
RGBrgb(75, 23, 107)
HSLhsl(277, 65%, 25%)
HSVhsv(277, 79%, 42%)
CMYKcmyk(29.9%, 78.5%, 0%, 58%)
CIE-LABlab(20.71, 39.29, -38.15)
CIE-LCHlch(20.71, 54.77, 315.85°)
OKLaboklab(33.41% 0.0871 -0.1082)
OKLCHoklch(33.41% 0.139 308.8)
XYZxyz(5.8613, 3.1703, 14.2102)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B176B #376B17
analogous
#21176B #4B176B #6B1761
triadic
#4B176B #6B4B17 #176B4B
tetradic
#4B176B #6B2117 #376B17 #17616B
square
#4B176B #6B2117 #376B17 #17616B
split-complementary
#4B176B #616B17 #176B21
monochromatic
#120519 #280C39 #4B176B #6E229D #922DD0

Accessibility & contrast

On white

12.85
#4B176B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#4B176B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B176B
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B176B#FFFFFF#000000##FFFFFF
##4B176B1.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306D
Deuteranopia (green-blind)
#003269
Tritanopia (blue-blind)
#462B40
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4b176b;
/* rgb */ color: rgb(75, 23, 107);
/* oklch */ color: oklch(33.4% 0.139 308.8);
Tailwind
colors: {
  custom: {
    50: '#815a96',
    500: '#4b176b',
    950: '#000000',
  },
}
SCSS
$custom: #4b176b;
$custom-light: #815a96;
$custom-dark: #000000;
JSON
{
  "hex": "#4b176b",
  "rgb": {
    "r": 75,
    "g": 23,
    "b": 107
  },
  "hsl": {
    "h": 277.143,
    "s": 64.615,
    "l": 25.49
  },
  "oklch": {
    "l": 0.3341,
    "c": 0.13896,
    "h": 308.8
  },
  "luminance": 0.0317
}

Semantic roles & 50–950 ramp

primary
#4B176B
secondary
#63A13D
accent
#E84080
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4B176B

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

Preview Lab → · Contrast checker → · Palette generator →

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