#4B187D#4B187D

#4B187D is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.1% C 0.157 H 301.3°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#4B187D
RGBrgb(75, 24, 125)
HSLhsl(270, 68%, 29%)
HSVhsv(270, 81%, 49%)
CMYKcmyk(40%, 80.8%, 0%, 51%)
CIE-LABlab(22.41, 43.32, -46.96)
CIE-LCHlch(22.41, 63.89, 312.69°)
OKLaboklab(35.08% 0.0817 -0.1341)
OKLCHoklch(35.08% 0.157 301.3)
XYZxyz(6.9290, 3.6297, 19.7336)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B187D #4A7D18
analogous
#19187D #4B187D #7D187D
triadic
#4B187D #7D4B18 #187D4B
tetradic
#4B187D #7D1918 #4A7D18 #187D7D
square
#4B187D #7D1918 #4A7D18 #187D7D
split-complementary
#4B187D #7D7D18 #187D19
monochromatic
#0F051A #2C0E4A #4B187D #6A22B0 #8937D9

Accessibility & contrast

On white

12.17
#4B187D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#4B187D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B187D
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B187D#FFFFFF#000000##FFFFFF
##4B187D1.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003580
Deuteranopia (green-blind)
#00357B
Tritanopia (blue-blind)
#40334A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4b187d;
/* rgb */ color: rgb(75, 24, 125);
/* oklch */ color: oklch(35.1% 0.157 301.3);
Tailwind
colors: {
  custom: {
    50: '#835ca3',
    500: '#4b187d',
    950: '#000000',
  },
}
SCSS
$custom: #4b187d;
$custom-light: #835ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#4b187d",
  "rgb": {
    "r": 75,
    "g": 24,
    "b": 125
  },
  "hsl": {
    "h": 270.297,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.35081,
    "c": 0.15706,
    "h": 301.3
  },
  "luminance": 0.0363
}

Semantic roles & 50–950 ramp

primary
#4B187D
secondary
#78B23F
accent
#EB3D93
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4B187D

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

Preview Lab → · Contrast checker → · Palette generator →

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