#4B187A#4B187A

#4B187A is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.8% C 0.154 H 302.5°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#4B187A
RGBrgb(75, 24, 122)
HSLhsl(271, 67%, 29%)
HSVhsv(271, 80%, 48%)
CMYKcmyk(38.5%, 80.3%, 0%, 52.2%)
CIE-LABlab(22.14, 42.57, -45.49)
CIE-LCHlch(22.14, 62.30, 313.10°)
OKLaboklab(34.81% 0.0826 -0.1298)
OKLCHoklch(34.81% 0.154 302.5)
XYZxyz(6.7403, 3.5542, 18.7395)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B187A #477A18
analogous
#1A187A #4B187A #7A1878
triadic
#4B187A #7A4B18 #187A4B
tetradic
#4B187A #7A1A18 #477A18 #18787A
square
#4B187A #7A1A18 #477A18 #18787A
split-complementary
#4B187A #787A18 #187A1A
monochromatic
#10051A #2C0E47 #4B187A #6A22AD #8A35D7

Accessibility & contrast

On white

12.27
#4B187A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#4B187A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B187A
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B187A#FFFFFF#000000##FFFFFF
##4B187A1.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347D
Deuteranopia (green-blind)
#003578
Tritanopia (blue-blind)
#413249
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4b187a;
/* rgb */ color: rgb(75, 24, 122);
/* oklch */ color: oklch(34.8% 0.154 302.5);
Tailwind
colors: {
  custom: {
    50: '#825ba1',
    500: '#4b187a',
    950: '#000000',
  },
}
SCSS
$custom: #4b187a;
$custom-light: #825ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#4b187a",
  "rgb": {
    "r": 75,
    "g": 24,
    "b": 122
  },
  "hsl": {
    "h": 271.224,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.34811,
    "c": 0.15384,
    "h": 302.5
  },
  "luminance": 0.03554
}

Semantic roles & 50–950 ramp

primary
#4B187A
secondary
#75AF3F
accent
#EA3E90
background
#F8F5FA
surface
#EFE9F3
border
#CAC5CD
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4B187A

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

Preview Lab → · Contrast checker → · Palette generator →

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