#4D2BAA#4D2BAA

#4D2BAA is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.7% C 0.188 H 287.5°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#4D2BAA
RGBrgb(77, 43, 170)
HSLhsl(256, 60%, 42%)
HSVhsv(256, 75%, 67%)
CMYKcmyk(54.7%, 74.7%, 0%, 33.3%)
CIE-LABlab(29.93, 47.00, -62.40)
CIE-LCHlch(29.93, 78.12, 306.99°)
OKLaboklab(41.69% 0.0564 -0.1795)
OKLCHoklch(41.69% 0.188 287.5)
XYZxyz(11.1780, 6.2072, 38.6315)
Luminance0.0621 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2BAA #88AA2B
analogous
#2B49AA #4D2BAA #8D2BAA
triadic
#4D2BAA #AA4D2B #2BAA4D
tetradic
#4D2BAA #AA2B49 #88AA2B #2BAA8D
square
#4D2BAA #AA2B49 #88AA2B #2BAA8D
split-complementary
#4D2BAA #AA8D2B #49AA2B
monochromatic
#211248 #371F79 #4D2BAA #6843CF #9074DC

Accessibility & contrast

On white

9.37
#4D2BAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#4D2BAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2BAA
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2BAA#FFFFFF#000000##FFFFFF
##4D2BAA1.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AE
Deuteranopia (green-blind)
#0043A8
Tritanopia (blue-blind)
#264E68
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4d2baa;
/* rgb */ color: rgb(77, 43, 170);
/* oklch */ color: oklch(41.7% 0.188 287.5);
Tailwind
colors: {
  custom: {
    50: '#8968c4',
    500: '#4d2baa',
    950: '#000000',
  },
}
SCSS
$custom: #4d2baa;
$custom-light: #8968c4;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2baa",
  "rgb": {
    "r": 77,
    "g": 43,
    "b": 170
  },
  "hsl": {
    "h": 256.063,
    "s": 59.624,
    "l": 41.765
  },
  "oklch": {
    "l": 0.41685,
    "c": 0.18814,
    "h": 287.5
  },
  "luminance": 0.06208
}

Semantic roles & 50–950 ramp

primary
#4D2BAA
secondary
#ACC36E
accent
#E345B9
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0613
muted
#7D7A82

Preview Lab

Preview with #4D2BAA

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

Preview Lab → · Contrast checker → · Palette generator →

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