#4B176D#4B176D

#4B176D is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.141 H 307.9°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#4B176D
RGBrgb(75, 23, 109)
HSLhsl(276, 65%, 26%)
HSVhsv(276, 79%, 43%)
CMYKcmyk(31.2%, 78.9%, 0%, 57.3%)
CIE-LABlab(20.88, 39.78, -39.18)
CIE-LCHlch(20.88, 55.83, 315.43°)
OKLaboklab(33.58% 0.0867 -0.1113)
OKLCHoklch(33.58% 0.141 307.9)
XYZxyz(5.9678, 3.2129, 14.7708)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B176D #396D17
analogous
#20176D #4B176D #6D1764
triadic
#4B176D #6D4B17 #176D4B
tetradic
#4B176D #6D2017 #396D17 #17646D
square
#4B176D #6D2017 #396D17 #17646D
split-complementary
#4B176D #646D17 #176D20
monochromatic
#110519 #280C3A #4B176D #6E22A0 #912CD2

Accessibility & contrast

On white

12.78
#4B176D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#4B176D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B176D
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B176D#FFFFFF#000000##FFFFFF
##4B176D1.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306F
Deuteranopia (green-blind)
#00336B
Tritanopia (blue-blind)
#452C41
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4b176d;
/* rgb */ color: rgb(75, 23, 109);
/* oklch */ color: oklch(33.6% 0.141 307.9);
Tailwind
colors: {
  custom: {
    50: '#815a97',
    500: '#4b176d',
    950: '#000000',
  },
}
SCSS
$custom: #4b176d;
$custom-light: #815a97;
$custom-dark: #000000;
JSON
{
  "hex": "#4b176d",
  "rgb": {
    "r": 75,
    "g": 23,
    "b": 109
  },
  "hsl": {
    "h": 276.279,
    "s": 65.152,
    "l": 25.882
  },
  "oklch": {
    "l": 0.33577,
    "c": 0.14108,
    "h": 307.9
  },
  "luminance": 0.03213
}

Semantic roles & 50–950 ramp

primary
#4B176D
secondary
#65A33D
accent
#E84082
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4B176D

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

Preview Lab → · Contrast checker → · Palette generator →

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