#4B178F#4B178F

#4B178F is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.7% C 0.177 H 295.6°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#4B178F
RGBrgb(75, 23, 143)
HSLhsl(266, 72%, 33%)
HSVhsv(266, 84%, 56%)
CMYKcmyk(47.6%, 83.9%, 0%, 43.9%)
CIE-LABlab(23.97, 48.32, -55.70)
CIE-LCHlch(23.97, 73.74, 310.94°)
OKLaboklab(36.69% 0.0766 -0.1598)
OKLCHoklch(36.69% 0.177 295.6)
XYZxyz(8.1646, 4.0916, 26.3409)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B178F #5B8F17
analogous
#171F8F #4B178F #87178F
triadic
#4B178F #8F4B17 #178F4B
tetradic
#4B178F #8F171F #5B8F17 #178F87
square
#4B178F #8F171F #5B8F17 #178F87
split-complementary
#4B178F #8F8717 #1F8F17
monochromatic
#140626 #2F0F5A #4B178F #671FC4 #8640E0

Accessibility & contrast

On white

11.55
#4B178F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#4B178F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B178F
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B178F#FFFFFF#000000##FFFFFF
##4B178F1.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#00378D
Tritanopia (blue-blind)
#373A54
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4b178f;
/* rgb */ color: rgb(75, 23, 143);
/* oklch */ color: oklch(36.7% 0.177 295.6);
Tailwind
colors: {
  custom: {
    50: '#855cb1',
    500: '#4b178f',
    950: '#000000',
  },
}
SCSS
$custom: #4b178f;
$custom-light: #855cb1;
$custom-dark: #000000;
JSON
{
  "hex": "#4b178f",
  "rgb": {
    "r": 75,
    "g": 23,
    "b": 143
  },
  "hsl": {
    "h": 266,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.36688,
    "c": 0.17717,
    "h": 295.6
  },
  "luminance": 0.04092
}

Semantic roles & 50–950 ramp

primary
#4B178F
secondary
#89C141
accent
#EF39A0
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0411
muted
#7D7980

Preview Lab

Preview with #4B178F

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

Preview Lab → · Contrast checker → · Palette generator →

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