#4B2187#4B2187

#4B2187 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.0% C 0.158 H 296.6°. Best body text is #FFFFFF at 11.25:1 contrast (WCAG AA passes).

Color values

HEX#4B2187
RGBrgb(75, 33, 135)
HSLhsl(265, 61%, 33%)
HSVhsv(265, 76%, 53%)
CMYKcmyk(44.4%, 75.6%, 0%, 47.1%)
CIE-LABlab(24.74, 41.83, -49.45)
CIE-LCHlch(24.74, 64.77, 310.23°)
OKLaboklab(37% 0.0708 -0.1415)
OKLCHoklch(37% 0.158 296.6)
XYZxyz(7.8175, 4.3327, 23.3414)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B2187 #5D8721
analogous
#212A87 #4B2187 #7E2187
triadic
#4B2187 #874B21 #21874B
tetradic
#4B2187 #87212A #5D8721 #21877E
square
#4B2187 #87212A #5D8721 #21877E
split-complementary
#4B2187 #877E21 #2A8721
monochromatic
#140925 #301556 #4B2187 #662DB8 #854FD4

Accessibility & contrast

On white

11.25
#4B2187 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#4B2187 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B2187
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B2187#FFFFFF#000000##FFFFFF
##4B21871.0011.251.8711.25
#FFFFFF11.251.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8A
Deuteranopia (green-blind)
#003985
Tritanopia (blue-blind)
#3B3B52
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4b2187;
/* rgb */ color: rgb(75, 33, 135);
/* oklch */ color: oklch(37.0% 0.158 296.6);
Tailwind
colors: {
  custom: {
    50: '#8361ab',
    500: '#4b2187',
    950: '#000000',
  },
}
SCSS
$custom: #4b2187;
$custom-light: #8361ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4b2187",
  "rgb": {
    "r": 75,
    "g": 33,
    "b": 135
  },
  "hsl": {
    "h": 264.706,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.36996,
    "c": 0.15824,
    "h": 296.6
  },
  "luminance": 0.04333
}

Semantic roles & 50–950 ramp

primary
#4B2187
secondary
#8BB74D
accent
#E444A2
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4B2187

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

Preview Lab → · Contrast checker → · Palette generator →

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