#4D2BA1#4D2BA1

#4D2BA1 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.8% C 0.177 H 289.3°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#4D2BA1
RGBrgb(77, 43, 161)
HSLhsl(257, 58%, 40%)
HSVhsv(257, 73%, 63%)
CMYKcmyk(52.2%, 73.3%, 0%, 36.9%)
CIE-LABlab(29.10, 44.40, -58.32)
CIE-LCHlch(29.10, 73.30, 307.28°)
OKLaboklab(40.85% 0.0586 -0.1675)
OKLCHoklch(40.85% 0.177 289.3)
XYZxyz(10.3556, 5.8783, 34.3003)
Luminance0.0588 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2BA1 #7FA12B
analogous
#2B44A1 #4D2BA1 #882BA1
triadic
#4D2BA1 #A14D2B #2BA14D
tetradic
#4D2BA1 #A12B44 #7FA12B #2BA188
square
#4D2BA1 #A12B44 #7FA12B #2BA188
split-complementary
#4D2BA1 #A1882B #44A12B
monochromatic
#1F1140 #361E71 #4D2BA1 #673ECB #8D6ED8

Accessibility & contrast

On white

9.65
#4D2BA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#4D2BA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2BA1
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2BA1#FFFFFF#000000##FFFFFF
##4D2BA11.009.652.189.65
#FFFFFF9.651.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A4
Deuteranopia (green-blind)
#00429F
Tritanopia (blue-blind)
#2E4A63
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4d2ba1;
/* rgb */ color: rgb(77, 43, 161);
/* oklch */ color: oklch(40.8% 0.177 289.3);
Tailwind
colors: {
  custom: {
    50: '#8868be',
    500: '#4d2ba1',
    950: '#000000',
  },
}
SCSS
$custom: #4d2ba1;
$custom-light: #8868be;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2ba1",
  "rgb": {
    "r": 77,
    "g": 43,
    "b": 161
  },
  "hsl": {
    "h": 257.288,
    "s": 57.843,
    "l": 40
  },
  "oklch": {
    "l": 0.40849,
    "c": 0.17747,
    "h": 289.3
  },
  "luminance": 0.05879
}

Semantic roles & 50–950 ramp

primary
#4D2BA1
secondary
#A6BF69
accent
#E147B5
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4D2BA1

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

Preview Lab → · Contrast checker → · Palette generator →

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