#4D2BA4#4D2BA4

#4D2BA4 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.1% C 0.181 H 288.6°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#4D2BA4
RGBrgb(77, 43, 164)
HSLhsl(257, 58%, 41%)
HSVhsv(257, 74%, 64%)
CMYKcmyk(53%, 73.8%, 0%, 35.7%)
CIE-LABlab(29.38, 45.26, -59.69)
CIE-LCHlch(29.38, 74.91, 307.17°)
OKLaboklab(41.13% 0.0579 -0.1715)
OKLCHoklch(41.13% 0.181 288.6)
XYZxyz(10.6233, 5.9854, 35.7103)
Luminance0.0599 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2BA4 #82A42B
analogous
#2B45A4 #4D2BA4 #8A2BA4
triadic
#4D2BA4 #A44D2B #2BA44D
tetradic
#4D2BA4 #A42B45 #82A42B #2BA48A
square
#4D2BA4 #A42B45 #82A42B #2BA48A
split-complementary
#4D2BA4 #A48A2B #45A42B
monochromatic
#1F1243 #361E74 #4D2BA4 #673FCD #8E70D9

Accessibility & contrast

On white

9.56
#4D2BA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#4D2BA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2BA4
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2BA4#FFFFFF#000000##FFFFFF
##4D2BA41.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A8
Deuteranopia (green-blind)
#0042A2
Tritanopia (blue-blind)
#2C4C65
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4d2ba4;
/* rgb */ color: rgb(77, 43, 164);
/* oklch */ color: oklch(41.1% 0.181 288.6);
Tailwind
colors: {
  custom: {
    50: '#8868c0',
    500: '#4d2ba4',
    950: '#000000',
  },
}
SCSS
$custom: #4d2ba4;
$custom-light: #8868c0;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2ba4",
  "rgb": {
    "r": 77,
    "g": 43,
    "b": 164
  },
  "hsl": {
    "h": 256.86,
    "s": 58.454,
    "l": 40.588
  },
  "oklch": {
    "l": 0.41125,
    "c": 0.18105,
    "h": 288.6
  },
  "luminance": 0.05986
}

Semantic roles & 50–950 ramp

primary
#4D2BA4
secondary
#A8C16A
accent
#E246B6
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4D2BA4

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

Preview Lab → · Contrast checker → · Palette generator →

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