#4B1776#4B1776

#4B1776 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.151 H 304.1°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#4B1776
RGBrgb(75, 23, 118)
HSLhsl(273, 67%, 28%)
HSVhsv(273, 81%, 46%)
CMYKcmyk(36.4%, 80.5%, 0%, 53.7%)
CIE-LABlab(21.64, 41.99, -43.75)
CIE-LCHlch(21.64, 60.63, 313.82°)
OKLaboklab(34.35% 0.0845 -0.1247)
OKLCHoklch(34.35% 0.151 304.1)
XYZxyz(6.4773, 3.4167, 17.4543)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1776 #427617
analogous
#1B1776 #4B1776 #761771
triadic
#4B1776 #764B17 #17764B
tetradic
#4B1776 #761B17 #427617 #177176
square
#4B1776 #761B17 #427617 #177176
split-complementary
#4B1776 #717617 #17761B
monochromatic
#10051A #2A0D43 #4B1776 #6C21A9 #8C31D7

Accessibility & contrast

On white

12.47
#4B1776 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#4B1776 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B1776
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1776#FFFFFF#000000##FFFFFF
##4B17761.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003379
Deuteranopia (green-blind)
#003474
Tritanopia (blue-blind)
#423046
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4b1776;
/* rgb */ color: rgb(75, 23, 118);
/* oklch */ color: oklch(34.4% 0.151 304.1);
Tailwind
colors: {
  custom: {
    50: '#825b9e',
    500: '#4b1776',
    950: '#000000',
  },
}
SCSS
$custom: #4b1776;
$custom-light: #825b9e;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1776",
  "rgb": {
    "r": 75,
    "g": 23,
    "b": 118
  },
  "hsl": {
    "h": 272.842,
    "s": 67.376,
    "l": 27.647
  },
  "oklch": {
    "l": 0.34352,
    "c": 0.15065,
    "h": 304.1
  },
  "luminance": 0.03417
}

Semantic roles & 50–950 ramp

primary
#4B1776
secondary
#6FAB3E
accent
#EA3E8C
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4B1776

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

Preview Lab → · Contrast checker → · Palette generator →

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