#4B178D#4B178D

#4B178D is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.5% C 0.175 H 296.2°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#4B178D
RGBrgb(75, 23, 141)
HSLhsl(266, 72%, 32%)
HSVhsv(266, 84%, 55%)
CMYKcmyk(46.8%, 83.7%, 0%, 44.7%)
CIE-LABlab(23.78, 47.81, -54.78)
CIE-LCHlch(23.78, 72.71, 311.11°)
OKLaboklab(36.49% 0.0773 -0.1571)
OKLCHoklch(36.49% 0.175 296.2)
XYZxyz(8.0145, 4.0315, 25.5500)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B178D #598D17
analogous
#171E8D #4B178D #86178D
triadic
#4B178D #8D4B17 #178D4B
tetradic
#4B178D #8D171E #598D17 #178D86
square
#4B178D #8D171E #598D17 #178D86
split-complementary
#4B178D #8D8617 #1E8D17
monochromatic
#130624 #2F0E58 #4B178D #6720C2 #863FE0

Accessibility & contrast

On white

11.63
#4B178D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#4B178D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B178D
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B178D#FFFFFF#000000##FFFFFF
##4B178D1.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003990
Deuteranopia (green-blind)
#00378B
Tritanopia (blue-blind)
#383A53
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4b178d;
/* rgb */ color: rgb(75, 23, 141);
/* oklch */ color: oklch(36.5% 0.175 296.2);
Tailwind
colors: {
  custom: {
    50: '#855caf',
    500: '#4b178d',
    950: '#000000',
  },
}
SCSS
$custom: #4b178d;
$custom-light: #855caf;
$custom-dark: #000000;
JSON
{
  "hex": "#4b178d",
  "rgb": {
    "r": 75,
    "g": 23,
    "b": 141
  },
  "hsl": {
    "h": 266.441,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.36492,
    "c": 0.17505,
    "h": 296.2
  },
  "luminance": 0.04032
}

Semantic roles & 50–950 ramp

primary
#4B178D
secondary
#87C040
accent
#EF399F
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0411
muted
#7D7980

Preview Lab

Preview with #4B178D

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

Preview Lab → · Contrast checker → · Palette generator →

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