#4B1171#4B1171

#4B1171 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.152 H 306.9°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).

Color values

HEX#4B1171
RGBrgb(75, 17, 113)
HSLhsl(276, 74%, 25%)
HSVhsv(276, 85%, 44%)
CMYKcmyk(33.6%, 85%, 0%, 55.7%)
CIE-LABlab(20.40, 43.11, -42.56)
CIE-LCHlch(20.40, 60.57, 315.37°)
OKLaboklab(33.35% 0.0911 -0.1211)
OKLCHoklch(33.35% 0.152 306.9)
XYZxyz(6.0821, 3.0891, 15.8954)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1171 #377111
analogous
#1B1171 #4B1171 #711167
triadic
#4B1171 #714B11 #11714B
tetradic
#4B1171 #711B11 #377111 #116771
square
#4B1171 #711B11 #377111 #116771
split-complementary
#4B1171 #677111 #11711B
monochromatic
#12041B #28093C #4B1171 #6E19A6 #9221DB

Accessibility & contrast

On white

12.98
#4B1171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#4B1171 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B1171
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1171#FFFFFF#000000##FFFFFF
##4B11711.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F74
Deuteranopia (green-blind)
#00326F
Tritanopia (blue-blind)
#442B42
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4b1171;
/* rgb */ color: rgb(75, 17, 113);
/* oklch */ color: oklch(33.3% 0.152 306.9);
Tailwind
colors: {
  custom: {
    50: '#82589b',
    500: '#4b1171',
    950: '#000000',
  },
}
SCSS
$custom: #4b1171;
$custom-light: #82589b;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1171",
  "rgb": {
    "r": 75,
    "g": 17,
    "b": 113
  },
  "hsl": {
    "h": 276.25,
    "s": 73.846,
    "l": 25.49
  },
  "oklch": {
    "l": 0.33347,
    "c": 0.15157,
    "h": 306.9
  },
  "luminance": 0.03089
}

Semantic roles & 50–950 ramp

primary
#4B1171
secondary
#63A836
accent
#F13781
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4B1171

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

Preview Lab → · Contrast checker → · Palette generator →

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