#4B176A#4B176A

#4B176A is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.138 H 309.3°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#4B176A
RGBrgb(75, 23, 106)
HSLhsl(278, 64%, 25%)
HSVhsv(278, 78%, 42%)
CMYKcmyk(29.2%, 78.3%, 0%, 58.4%)
CIE-LABlab(20.63, 39.05, -37.63)
CIE-LCHlch(20.63, 54.23, 316.06°)
OKLaboklab(33.33% 0.0873 -0.1067)
OKLCHoklch(33.33% 0.138 309.3)
XYZxyz(5.8090, 3.1494, 13.9347)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B176A #366A17
analogous
#21176A #4B176A #6A1760
triadic
#4B176A #6A4B17 #176A4B
tetradic
#4B176A #6A2117 #366A17 #17606A
square
#4B176A #6A2117 #366A17 #17606A
split-complementary
#4B176A #606A17 #176A21
monochromatic
#120519 #270C38 #4B176A #6F229C #922DCF

Accessibility & contrast

On white

12.89
#4B176A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4B176A
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B176A#FFFFFF#000000##FFFFFF
##4B176A1.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306C
Deuteranopia (green-blind)
#013268
Tritanopia (blue-blind)
#462B3F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4b176a;
/* rgb */ color: rgb(75, 23, 106);
/* oklch */ color: oklch(33.3% 0.138 309.3);
Tailwind
colors: {
  custom: {
    50: '#815a95',
    500: '#4b176a',
    950: '#000000',
  },
}
SCSS
$custom: #4b176a;
$custom-light: #815a95;
$custom-dark: #000000;
JSON
{
  "hex": "#4b176a",
  "rgb": {
    "r": 75,
    "g": 23,
    "b": 106
  },
  "hsl": {
    "h": 277.59,
    "s": 64.341,
    "l": 25.294
  },
  "oklch": {
    "l": 0.33327,
    "c": 0.1379,
    "h": 309.3
  },
  "luminance": 0.03149
}

Semantic roles & 50–950 ramp

primary
#4B176A
secondary
#62A03D
accent
#E7407F
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4B176A

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

Preview Lab → · Contrast checker → · Palette generator →

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