#4D2BAB#4D2BAB

#4D2BAB is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.8% C 0.189 H 287.3°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#4D2BAB
RGBrgb(77, 43, 171)
HSLhsl(256, 60%, 42%)
HSVhsv(256, 75%, 67%)
CMYKcmyk(55%, 74.9%, 0%, 32.9%)
CIE-LABlab(30.02, 47.29, -62.85)
CIE-LCHlch(30.02, 78.65, 306.96°)
OKLaboklab(41.78% 0.0562 -0.1808)
OKLCHoklch(41.78% 0.189 287.3)
XYZxyz(11.2729, 6.2452, 39.1316)
Luminance0.0625 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2BAB #89AB2B
analogous
#2B49AB #4D2BAB #8D2BAB
triadic
#4D2BAB #AB4D2B #2BAB4D
tetradic
#4D2BAB #AB2B49 #89AB2B #2BAB8D
square
#4D2BAB #AB2B49 #89AB2B #2BAB8D
split-complementary
#4D2BAB #AB8D2B #49AB2B
monochromatic
#211249 #371F7A #4D2BAB #6943D0 #9074DC

Accessibility & contrast

On white

9.34
#4D2BAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#4D2BAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2BAB
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2BAB#FFFFFF#000000##FFFFFF
##4D2BAB1.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAF
Deuteranopia (green-blind)
#0043A9
Tritanopia (blue-blind)
#254E69
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4d2bab;
/* rgb */ color: rgb(77, 43, 171);
/* oklch */ color: oklch(41.8% 0.189 287.3);
Tailwind
colors: {
  custom: {
    50: '#8968c5',
    500: '#4d2bab',
    950: '#000000',
  },
}
SCSS
$custom: #4d2bab;
$custom-light: #8968c5;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2bab",
  "rgb": {
    "r": 77,
    "g": 43,
    "b": 171
  },
  "hsl": {
    "h": 255.938,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.41779,
    "c": 0.18931,
    "h": 287.3
  },
  "luminance": 0.06246
}

Semantic roles & 50–950 ramp

primary
#4D2BAB
secondary
#ADC46E
accent
#E345B9
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4D2BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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