#4B1172#4B1172

#4B1172 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.4% C 0.153 H 306.5°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#4B1172
RGBrgb(75, 17, 114)
HSLhsl(276, 74%, 26%)
HSVhsv(276, 85%, 45%)
CMYKcmyk(34.2%, 85.1%, 0%, 55.3%)
CIE-LABlab(20.49, 43.34, -43.06)
CIE-LCHlch(20.49, 61.09, 315.19°)
OKLaboklab(33.44% 0.0908 -0.1226)
OKLCHoklch(33.44% 0.153 306.5)
XYZxyz(6.1387, 3.1117, 16.1936)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1172 #387211
analogous
#1A1172 #4B1172 #721168
triadic
#4B1172 #724B11 #11724B
tetradic
#4B1172 #721A11 #387211 #116872
square
#4B1172 #721A11 #387211 #116872
split-complementary
#4B1172 #687211 #11721A
monochromatic
#12041B #28093D #4B1172 #6E19A7 #9121DD

Accessibility & contrast

On white

12.94
#4B1172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4B1172
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1172#FFFFFF#000000##FFFFFF
##4B11721.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003075
Deuteranopia (green-blind)
#003270
Tritanopia (blue-blind)
#442B43
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4b1172;
/* rgb */ color: rgb(75, 17, 114);
/* oklch */ color: oklch(33.4% 0.153 306.5);
Tailwind
colors: {
  custom: {
    50: '#82589b',
    500: '#4b1172',
    950: '#000000',
  },
}
SCSS
$custom: #4b1172;
$custom-light: #82589b;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1172",
  "rgb": {
    "r": 75,
    "g": 17,
    "b": 114
  },
  "hsl": {
    "h": 275.876,
    "s": 74.046,
    "l": 25.686
  },
  "oklch": {
    "l": 0.33436,
    "c": 0.15256,
    "h": 306.5
  },
  "luminance": 0.03112
}

Semantic roles & 50–950 ramp

primary
#4B1172
secondary
#64A936
accent
#F13782
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4B1172

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

Preview Lab → · Contrast checker → · Palette generator →

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