#4D2BA2#4D2BA2

#4D2BA2 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.9% C 0.179 H 289.1°. Best body text is #FFFFFF at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#4D2BA2
RGBrgb(77, 43, 162)
HSLhsl(257, 58%, 40%)
HSVhsv(257, 73%, 64%)
CMYKcmyk(52.5%, 73.5%, 0%, 36.5%)
CIE-LABlab(29.19, 44.69, -58.78)
CIE-LCHlch(29.19, 73.84, 307.24°)
OKLaboklab(40.94% 0.0583 -0.1689)
OKLCHoklch(40.94% 0.179 289.1)
XYZxyz(10.4441, 5.9137, 34.7666)
Luminance0.0591 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2BA2 #80A22B
analogous
#2B44A2 #4D2BA2 #892BA2
triadic
#4D2BA2 #A24D2B #2BA24D
tetradic
#4D2BA2 #A22B44 #80A22B #2BA289
square
#4D2BA2 #A22B44 #80A22B #2BA289
split-complementary
#4D2BA2 #A2892B #44A22B
monochromatic
#1F1141 #361E72 #4D2BA2 #673ECC #8D6FD9

Accessibility & contrast

On white

9.62
#4D2BA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D2BA2
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2BA2#FFFFFF#000000##FFFFFF
##4D2BA21.009.622.189.62
#FFFFFF9.621.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A5
Deuteranopia (green-blind)
#0042A0
Tritanopia (blue-blind)
#2D4B64
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4d2ba2;
/* rgb */ color: rgb(77, 43, 162);
/* oklch */ color: oklch(40.9% 0.179 289.1);
Tailwind
colors: {
  custom: {
    50: '#8868bf',
    500: '#4d2ba2',
    950: '#000000',
  },
}
SCSS
$custom: #4d2ba2;
$custom-light: #8868bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2ba2",
  "rgb": {
    "r": 77,
    "g": 43,
    "b": 162
  },
  "hsl": {
    "h": 257.143,
    "s": 58.049,
    "l": 40.196
  },
  "oklch": {
    "l": 0.4094,
    "c": 0.17867,
    "h": 289.1
  },
  "luminance": 0.05914
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4D2BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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