#4B1174#4B1174

#4B1174 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.155 H 305.7°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).

Color values

HEX#4B1174
RGBrgb(75, 17, 116)
HSLhsl(275, 74%, 26%)
HSVhsv(275, 85%, 45%)
CMYKcmyk(35.3%, 85.3%, 0%, 54.5%)
CIE-LABlab(20.67, 43.82, -44.05)
CIE-LCHlch(20.67, 62.13, 314.84°)
OKLaboklab(33.62% 0.0902 -0.1255)
OKLCHoklch(33.62% 0.155 305.7)
XYZxyz(6.2538, 3.1578, 16.7997)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1174 #3A7411
analogous
#1A1174 #4B1174 #74116B
triadic
#4B1174 #744B11 #11744B
tetradic
#4B1174 #741A11 #3A7411 #116B74
square
#4B1174 #741A11 #3A7411 #116B74
split-complementary
#4B1174 #6B7411 #11741A
monochromatic
#11041B #28093F #4B1174 #6E19A9 #9021DE

Accessibility & contrast

On white

12.87
#4B1174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4B1174
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1174#FFFFFF#000000##FFFFFF
##4B11741.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003077
Deuteranopia (green-blind)
#003272
Tritanopia (blue-blind)
#432C44
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4b1174;
/* rgb */ color: rgb(75, 17, 116);
/* oklch */ color: oklch(33.6% 0.155 305.7);
Tailwind
colors: {
  custom: {
    50: '#82589d',
    500: '#4b1174',
    950: '#000000',
  },
}
SCSS
$custom: #4b1174;
$custom-light: #82589d;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1174",
  "rgb": {
    "r": 75,
    "g": 17,
    "b": 116
  },
  "hsl": {
    "h": 275.152,
    "s": 74.436,
    "l": 26.078
  },
  "oklch": {
    "l": 0.33616,
    "c": 0.15457,
    "h": 305.7
  },
  "luminance": 0.03158
}

Semantic roles & 50–950 ramp

primary
#4B1174
secondary
#66AB36
accent
#F13784
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4B1174

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

Preview Lab → · Contrast checker → · Palette generator →

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