#4B1173#4B1173

#4B1173 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.5% C 0.154 H 306.1°. Best body text is #FFFFFF at 12.91:1 contrast (WCAG AA passes).

Color values

HEX#4B1173
RGBrgb(75, 17, 115)
HSLhsl(276, 74%, 26%)
HSVhsv(276, 85%, 45%)
CMYKcmyk(34.8%, 85.2%, 0%, 54.9%)
CIE-LABlab(20.58, 43.58, -43.56)
CIE-LCHlch(20.58, 61.61, 315.01°)
OKLaboklab(33.53% 0.0905 -0.1241)
OKLCHoklch(33.53% 0.154 306.1)
XYZxyz(6.1959, 3.1346, 16.4950)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1173 #397311
analogous
#1A1173 #4B1173 #73116A
triadic
#4B1173 #734B11 #11734B
tetradic
#4B1173 #731A11 #397311 #116A73
square
#4B1173 #731A11 #397311 #116A73
split-complementary
#4B1173 #6A7311 #11731A
monochromatic
#11041B #28093E #4B1173 #6E19A8 #9121DE

Accessibility & contrast

On white

12.91
#4B1173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#4B1173 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B1173
12.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1173#FFFFFF#000000##FFFFFF
##4B11731.0012.911.6312.91
#FFFFFF12.911.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003076
Deuteranopia (green-blind)
#003271
Tritanopia (blue-blind)
#442C43
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4b1173;
/* rgb */ color: rgb(75, 17, 115);
/* oklch */ color: oklch(33.5% 0.154 306.1);
Tailwind
colors: {
  custom: {
    50: '#82589c',
    500: '#4b1173',
    950: '#000000',
  },
}
SCSS
$custom: #4b1173;
$custom-light: #82589c;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1173",
  "rgb": {
    "r": 75,
    "g": 17,
    "b": 115
  },
  "hsl": {
    "h": 275.51,
    "s": 74.242,
    "l": 25.882
  },
  "oklch": {
    "l": 0.33526,
    "c": 0.15357,
    "h": 306.1
  },
  "luminance": 0.03135
}

Semantic roles & 50–950 ramp

primary
#4B1173
secondary
#65AA36
accent
#F13783
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4B1173

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

Preview Lab → · Contrast checker → · Palette generator →

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