#4B177B#4B177B

#4B177B is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.8% C 0.156 H 302.2°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#4B177B
RGBrgb(75, 23, 123)
HSLhsl(271, 68%, 29%)
HSVhsv(271, 81%, 48%)
CMYKcmyk(39%, 81.3%, 0%, 51.8%)
CIE-LABlab(22.08, 43.23, -46.22)
CIE-LCHlch(22.08, 63.29, 313.09°)
OKLaboklab(34.8% 0.0832 -0.132)
OKLCHoklch(34.8% 0.156 302.2)
XYZxyz(6.7823, 3.5387, 19.0608)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B177B #477B17
analogous
#19177B #4B177B #7B1779
triadic
#4B177B #7B4B17 #177B4B
tetradic
#4B177B #7B1917 #477B17 #17797B
square
#4B177B #7B1917 #477B17 #17797B
split-complementary
#4B177B #797B17 #177B19
monochromatic
#10051A #2C0D47 #4B177B #6A21AF #8A33D9

Accessibility & contrast

On white

12.30
#4B177B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#4B177B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B177B
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B177B#FFFFFF#000000##FFFFFF
##4B177B1.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347E
Deuteranopia (green-blind)
#003479
Tritanopia (blue-blind)
#413249
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4b177b;
/* rgb */ color: rgb(75, 23, 123);
/* oklch */ color: oklch(34.8% 0.156 302.2);
Tailwind
colors: {
  custom: {
    50: '#835ba2',
    500: '#4b177b',
    950: '#000000',
  },
}
SCSS
$custom: #4b177b;
$custom-light: #835ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#4b177b",
  "rgb": {
    "r": 75,
    "g": 23,
    "b": 123
  },
  "hsl": {
    "h": 271.2,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.34799,
    "c": 0.15596,
    "h": 302.2
  },
  "luminance": 0.03539
}

Semantic roles & 50–950 ramp

primary
#4B177B
secondary
#75B03E
accent
#EB3C90
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4B177B

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

Preview Lab → · Contrast checker → · Palette generator →

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