#4B177A#4B177A

#4B177A is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.155 H 302.6°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#4B177A
RGBrgb(75, 23, 122)
HSLhsl(272, 68%, 28%)
HSVhsv(272, 81%, 48%)
CMYKcmyk(38.5%, 81.1%, 0%, 52.2%)
CIE-LABlab(21.99, 42.98, -45.73)
CIE-LCHlch(21.99, 62.76, 313.23°)
OKLaboklab(34.71% 0.0834 -0.1305)
OKLCHoklch(34.71% 0.155 302.6)
XYZxyz(6.7201, 3.5138, 18.7328)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B177A #467A17
analogous
#19177A #4B177A #7A1777
triadic
#4B177A #7A4B17 #177A4B
tetradic
#4B177A #7A1917 #467A17 #17777A
square
#4B177A #7A1917 #467A17 #17777A
split-complementary
#4B177A #777A17 #177A19
monochromatic
#10051A #2B0D47 #4B177A #6B21AD #8A33D9

Accessibility & contrast

On white

12.33
#4B177A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#4B177A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B177A
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B177A#FFFFFF#000000##FFFFFF
##4B177A1.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347D
Deuteranopia (green-blind)
#003478
Tritanopia (blue-blind)
#413148
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4b177a;
/* rgb */ color: rgb(75, 23, 122);
/* oklch */ color: oklch(34.7% 0.155 302.6);
Tailwind
colors: {
  custom: {
    50: '#835ba1',
    500: '#4b177a',
    950: '#000000',
  },
}
SCSS
$custom: #4b177a;
$custom-light: #835ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#4b177a",
  "rgb": {
    "r": 75,
    "g": 23,
    "b": 122
  },
  "hsl": {
    "h": 271.515,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.34709,
    "c": 0.1549,
    "h": 302.6
  },
  "luminance": 0.03514
}

Semantic roles & 50–950 ramp

primary
#4B177A
secondary
#74AF3E
accent
#EB3D8F
background
#F8F5FA
surface
#EFE9F3
border
#CAC5CD
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4B177A

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

Preview Lab → · Contrast checker → · Palette generator →

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