#4B2487#4B2487

#4B2487 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.4% C 0.155 H 296.0°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).

Color values

HEX#4B2487
RGBrgb(75, 36, 135)
HSLhsl(264, 58%, 34%)
HSVhsv(264, 73%, 53%)
CMYKcmyk(44.4%, 73.3%, 0%, 47.1%)
CIE-LABlab(25.28, 40.31, -48.57)
CIE-LCHlch(25.28, 63.12, 309.69°)
OKLaboklab(37.38% 0.0678 -0.139)
OKLCHoklch(37.38% 0.155 296)
XYZxyz(7.9045, 4.5067, 23.3704)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B2487 #608724
analogous
#242E87 #4B2487 #7C2487
triadic
#4B2487 #874B24 #24874B
tetradic
#4B2487 #87242E #608724 #24877C
square
#4B2487 #87242E #608724 #24877C
split-complementary
#4B2487 #877C24 #2E8724
monochromatic
#150A26 #301757 #4B2487 #6631B7 #8554D1

Accessibility & contrast

On white

11.04
#4B2487 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#4B2487 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B2487
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B2487#FFFFFF#000000##FFFFFF
##4B24871.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8A
Deuteranopia (green-blind)
#003B85
Tritanopia (blue-blind)
#3B3D53
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4b2487;
/* rgb */ color: rgb(75, 36, 135);
/* oklch */ color: oklch(37.4% 0.155 296.0);
Tailwind
colors: {
  custom: {
    50: '#8362ab',
    500: '#4b2487',
    950: '#000000',
  },
}
SCSS
$custom: #4b2487;
$custom-light: #8362ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4b2487",
  "rgb": {
    "r": 75,
    "g": 36,
    "b": 135
  },
  "hsl": {
    "h": 263.636,
    "s": 57.895,
    "l": 33.529
  },
  "oklch": {
    "l": 0.37377,
    "c": 0.15464,
    "h": 296
  },
  "luminance": 0.04507
}

Semantic roles & 50–950 ramp

primary
#4B2487
secondary
#8EB551
accent
#E147A4
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0510
muted
#7C7A7F

Preview Lab

Preview with #4B2487

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

Preview Lab → · Contrast checker → · Palette generator →

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