#4B2D9D#4B2D9D

#4B2D9D is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.6% C 0.170 H 288.7°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#4B2D9D
RGBrgb(75, 45, 157)
HSLhsl(256, 55%, 40%)
HSVhsv(256, 71%, 62%)
CMYKcmyk(52.2%, 71.3%, 0%, 38.4%)
CIE-LABlab(28.92, 41.83, -56.20)
CIE-LCHlch(28.92, 70.06, 306.66°)
OKLaboklab(40.56% 0.0546 -0.1614)
OKLCHoklch(40.56% 0.17 288.7)
XYZxyz(9.9241, 5.8065, 32.4896)
Luminance0.0581 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B2D9D #7F9D2D
analogous
#2D479D #4B2D9D #832D9D
triadic
#4B2D9D #9D4B2D #2D9D4B
tetradic
#4B2D9D #9D2D47 #7F9D2D #2D9D83
square
#4B2D9D #9D2D47 #7F9D2D #2D9D83
split-complementary
#4B2D9D #9D832D #479D2D
monochromatic
#1E123E #341F6D #4B2D9D #643FC8 #8A6FD6

Accessibility & contrast

On white

9.72
#4B2D9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#4B2D9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B2D9D
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B2D9D#FFFFFF#000000##FFFFFF
##4B2D9D1.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A0
Deuteranopia (green-blind)
#00419B
Tritanopia (blue-blind)
#2D4A62
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4b2d9d;
/* rgb */ color: rgb(75, 45, 157);
/* oklch */ color: oklch(40.6% 0.170 288.7);
Tailwind
colors: {
  custom: {
    50: '#8669bb',
    500: '#4b2d9d',
    950: '#000000',
  },
}
SCSS
$custom: #4b2d9d;
$custom-light: #8669bb;
$custom-dark: #000000;
JSON
{
  "hex": "#4b2d9d",
  "rgb": {
    "r": 75,
    "g": 45,
    "b": 157
  },
  "hsl": {
    "h": 256.071,
    "s": 55.446,
    "l": 39.608
  },
  "oklch": {
    "l": 0.40558,
    "c": 0.17039,
    "h": 288.7
  },
  "luminance": 0.05807
}

Semantic roles & 50–950 ramp

primary
#4B2D9D
secondary
#A6BD69
accent
#DF49B7
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4B2D9D

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

Preview Lab → · Contrast checker → · Palette generator →

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