#4B177F#4B177F

#4B177F is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.2% C 0.160 H 300.8°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#4B177F
RGBrgb(75, 23, 127)
HSLhsl(270, 69%, 29%)
HSVhsv(270, 82%, 50%)
CMYKcmyk(40.9%, 81.9%, 0%, 50.2%)
CIE-LABlab(22.45, 44.24, -48.17)
CIE-LCHlch(22.45, 65.40, 312.57°)
OKLaboklab(35.17% 0.082 -0.1377)
OKLCHoklch(35.17% 0.16 300.8)
XYZxyz(7.0379, 3.6409, 20.4065)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B177F #4B7F17
analogous
#17177F #4B177F #7F177F
triadic
#4B177F #7F4B17 #177F4B
tetradic
#4B177F #7F1717 #4B7F17 #177F7F
square
#4B177F #7F1717 #4B7F17 #177F7F
split-complementary
#4B177F #7F7F17 #177F17
monochromatic
#0F051A #2C0E4B #4B177F #6A20B3 #8836DB

Accessibility & contrast

On white

12.15
#4B177F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#4B177F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B177F
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B177F#FFFFFF#000000##FFFFFF
##4B177F1.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#00357D
Tritanopia (blue-blind)
#3F344B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4b177f;
/* rgb */ color: rgb(75, 23, 127);
/* oklch */ color: oklch(35.2% 0.160 300.8);
Tailwind
colors: {
  custom: {
    50: '#835ba5',
    500: '#4b177f',
    950: '#000000',
  },
}
SCSS
$custom: #4b177f;
$custom-light: #835ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#4b177f",
  "rgb": {
    "r": 75,
    "g": 23,
    "b": 127
  },
  "hsl": {
    "h": 270,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.35165,
    "c": 0.16021,
    "h": 300.8
  },
  "luminance": 0.03641
}

Semantic roles & 50–950 ramp

primary
#4B177F
secondary
#79B43E
accent
#EC3C94
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4B177F

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

Preview Lab → · Contrast checker → · Palette generator →

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