#4B176F#4B176F

#4B176F is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.7% C 0.143 H 307.0°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#4B176F
RGBrgb(75, 23, 111)
HSLhsl(275, 66%, 26%)
HSVhsv(275, 79%, 44%)
CMYKcmyk(32.4%, 79.3%, 0%, 56.5%)
CIE-LABlab(21.04, 40.26, -40.21)
CIE-LCHlch(21.04, 56.90, 315.04°)
OKLaboklab(33.75% 0.0863 -0.1143)
OKLCHoklch(33.75% 0.143 307)
XYZxyz(6.0767, 3.2564, 15.3443)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B176F #3B6F17
analogous
#1F176F #4B176F #6F1767
triadic
#4B176F #6F4B17 #176F4B
tetradic
#4B176F #6F1F17 #3B6F17 #17676F
square
#4B176F #6F1F17 #3B6F17 #17676F
split-complementary
#4B176F #676F17 #176F1F
monochromatic
#110519 #290C3C #4B176F #6D22A2 #8F2DD3

Accessibility & contrast

On white

12.72
#4B176F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#4B176F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B176F
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B176F#FFFFFF#000000##FFFFFF
##4B176F1.0012.721.6512.72
#FFFFFF12.721.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003171
Deuteranopia (green-blind)
#00336D
Tritanopia (blue-blind)
#452D42
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4b176f;
/* rgb */ color: rgb(75, 23, 111);
/* oklch */ color: oklch(33.7% 0.143 307.0);
Tailwind
colors: {
  custom: {
    50: '#815a99',
    500: '#4b176f',
    950: '#000000',
  },
}
SCSS
$custom: #4b176f;
$custom-light: #815a99;
$custom-dark: #000000;
JSON
{
  "hex": "#4b176f",
  "rgb": {
    "r": 75,
    "g": 23,
    "b": 111
  },
  "hsl": {
    "h": 275.455,
    "s": 65.672,
    "l": 26.275
  },
  "oklch": {
    "l": 0.33746,
    "c": 0.14321,
    "h": 307
  },
  "luminance": 0.03256
}

Semantic roles & 50–950 ramp

primary
#4B176F
secondary
#67A53D
accent
#E93F84
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4B176F

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

Preview Lab → · Contrast checker → · Palette generator →

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