#4B2EAA#4B2EAA

#4B2EAA is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.9% C 0.185 H 286.0°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#4B2EAA
RGBrgb(75, 46, 170)
HSLhsl(254, 57%, 42%)
HSVhsv(254, 73%, 67%)
CMYKcmyk(55.9%, 72.9%, 0%, 33.3%)
CIE-LABlab(30.28, 45.14, -61.83)
CIE-LCHlch(30.28, 76.55, 306.13°)
OKLaboklab(41.89% 0.051 -0.1779)
OKLCHoklch(41.89% 0.185 286)
XYZxyz(11.1322, 6.3515, 38.6618)
Luminance0.0635 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B2EAA #8DAA2E
analogous
#2E4FAA #4B2EAA #892EAA
triadic
#4B2EAA #AA4B2E #2EAA4B
tetradic
#4B2EAA #AA2E4F #8DAA2E #2EAA89
square
#4B2EAA #AA2E4F #8DAA2E #2EAA89
split-complementary
#4B2EAA #AA892E #4FAA2E
monochromatic
#20144A #36217A #4B2EAA #6748CD #8F78DA

Accessibility & contrast

On white

9.25
#4B2EAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#4B2EAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B2EAA
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B2EAA#FFFFFF#000000##FFFFFF
##4B2EAA1.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAE
Deuteranopia (green-blind)
#0044A8
Tritanopia (blue-blind)
#205069
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4b2eaa;
/* rgb */ color: rgb(75, 46, 170);
/* oklch */ color: oklch(41.9% 0.185 286.0);
Tailwind
colors: {
  custom: {
    50: '#886ac4',
    500: '#4b2eaa',
    950: '#000000',
  },
}
SCSS
$custom: #4b2eaa;
$custom-light: #886ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#4b2eaa",
  "rgb": {
    "r": 75,
    "g": 46,
    "b": 170
  },
  "hsl": {
    "h": 254.032,
    "s": 57.407,
    "l": 42.353
  },
  "oklch": {
    "l": 0.41887,
    "c": 0.18506,
    "h": 286
  },
  "luminance": 0.06352
}

Semantic roles & 50–950 ramp

primary
#4B2EAA
secondary
#B0C371
accent
#E147BD
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4B2EAA

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

Preview Lab → · Contrast checker → · Palette generator →

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