#4B1180#4B1180

#4B1180 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.167 H 301.1°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#4B1180
RGBrgb(75, 17, 128)
HSLhsl(271, 77%, 28%)
HSVhsv(271, 87%, 50%)
CMYKcmyk(41.4%, 86.7%, 0%, 49.8%)
CIE-LABlab(21.78, 46.70, -49.89)
CIE-LCHlch(21.78, 68.34, 313.11°)
OKLaboklab(34.73% 0.0861 -0.1427)
OKLCHoklch(34.73% 0.167 301.1)
XYZxyz(6.9974, 3.4552, 20.7162)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1180 #468011
analogous
#131180 #4B1180 #80117D
triadic
#4B1180 #804B11 #11804B
tetradic
#4B1180 #801311 #468011 #117D80
square
#4B1180 #801311 #468011 #117D80
split-complementary
#4B1180 #7D8011 #118013
monochromatic
#10041B #2B0A4A #4B1180 #6B18B6 #8A29E3

Accessibility & contrast

On white

12.42
#4B1180 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#4B1180 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B1180
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1180#FFFFFF#000000##FFFFFF
##4B11801.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003483
Deuteranopia (green-blind)
#00337E
Tritanopia (blue-blind)
#3F324B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4b1180;
/* rgb */ color: rgb(75, 17, 128);
/* oklch */ color: oklch(34.7% 0.167 301.1);
Tailwind
colors: {
  custom: {
    50: '#8459a6',
    500: '#4b1180',
    950: '#000000',
  },
}
SCSS
$custom: #4b1180;
$custom-light: #8459a6;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1180",
  "rgb": {
    "r": 75,
    "g": 17,
    "b": 128
  },
  "hsl": {
    "h": 271.351,
    "s": 76.552,
    "l": 28.431
  },
  "oklch": {
    "l": 0.34733,
    "c": 0.16663,
    "h": 301.1
  },
  "luminance": 0.03455
}

Semantic roles & 50–950 ramp

primary
#4B1180
secondary
#74B637
accent
#F33590
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4B1180

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

Preview Lab → · Contrast checker → · Palette generator →

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