#4B1771#4B1771

#4B1771 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.145 H 306.2°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).

Color values

HEX#4B1771
RGBrgb(75, 23, 113)
HSLhsl(275, 66%, 27%)
HSVhsv(275, 80%, 44%)
CMYKcmyk(33.6%, 79.6%, 0%, 55.7%)
CIE-LABlab(21.21, 40.75, -41.23)
CIE-LCHlch(21.21, 57.97, 314.67°)
OKLaboklab(33.92% 0.0858 -0.1173)
OKLCHoklch(33.92% 0.145 306.2)
XYZxyz(6.1880, 3.3010, 15.9307)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1771 #3D7117
analogous
#1E1771 #4B1771 #71176A
triadic
#4B1771 #714B17 #17714B
tetradic
#4B1771 #711E17 #3D7117 #176A71
square
#4B1771 #711E17 #3D7117 #176A71
split-complementary
#4B1771 #6A7117 #17711E
monochromatic
#110519 #290D3E #4B1771 #6D21A4 #8E2ED4

Accessibility & contrast

On white

12.65
#4B1771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#4B1771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B1771
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1771#FFFFFF#000000##FFFFFF
##4B17711.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003173
Deuteranopia (green-blind)
#00336F
Tritanopia (blue-blind)
#442E43
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4b1771;
/* rgb */ color: rgb(75, 23, 113);
/* oklch */ color: oklch(33.9% 0.145 306.2);
Tailwind
colors: {
  custom: {
    50: '#825a9a',
    500: '#4b1771',
    950: '#000000',
  },
}
SCSS
$custom: #4b1771;
$custom-light: #825a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1771",
  "rgb": {
    "r": 75,
    "g": 23,
    "b": 113
  },
  "hsl": {
    "h": 274.667,
    "s": 66.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.33917,
    "c": 0.14533,
    "h": 306.2
  },
  "luminance": 0.03301
}

Semantic roles & 50–950 ramp

primary
#4B1771
secondary
#6AA73D
accent
#E93F87
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4B1771

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

Preview Lab → · Contrast checker → · Palette generator →

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