#4D2BA5#4D2BA5

#4D2BA5 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.2% C 0.182 H 288.4°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#4D2BA5
RGBrgb(77, 43, 165)
HSLhsl(257, 59%, 41%)
HSVhsv(257, 74%, 65%)
CMYKcmyk(53.3%, 73.9%, 0%, 35.3%)
CIE-LABlab(29.47, 45.55, -60.15)
CIE-LCHlch(29.47, 75.45, 307.14°)
OKLaboklab(41.22% 0.0576 -0.1729)
OKLCHoklch(41.22% 0.182 288.4)
XYZxyz(10.7140, 6.0216, 36.1878)
Luminance0.0602 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2BA5 #83A52B
analogous
#2B46A5 #4D2BA5 #8A2BA5
triadic
#4D2BA5 #A54D2B #2BA54D
tetradic
#4D2BA5 #A52B46 #83A52B #2BA58A
square
#4D2BA5 #A52B46 #83A52B #2BA58A
split-complementary
#4D2BA5 #A58A2B #46A52B
monochromatic
#201244 #361E74 #4D2BA5 #6740CD #8E71DA

Accessibility & contrast

On white

9.53
#4D2BA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D2BA5
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2BA5#FFFFFF#000000##FFFFFF
##4D2BA51.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A9
Deuteranopia (green-blind)
#0042A3
Tritanopia (blue-blind)
#2B4C65
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4d2ba5;
/* rgb */ color: rgb(77, 43, 165);
/* oklch */ color: oklch(41.2% 0.182 288.4);
Tailwind
colors: {
  custom: {
    50: '#8868c1',
    500: '#4d2ba5',
    950: '#000000',
  },
}
SCSS
$custom: #4d2ba5;
$custom-light: #8868c1;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2ba5",
  "rgb": {
    "r": 77,
    "g": 43,
    "b": 165
  },
  "hsl": {
    "h": 256.721,
    "s": 58.654,
    "l": 40.784
  },
  "oklch": {
    "l": 0.41217,
    "c": 0.18223,
    "h": 288.4
  },
  "luminance": 0.06022
}

Semantic roles & 50–950 ramp

primary
#4D2BA5
secondary
#A9C16B
accent
#E246B6
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4D2BA5

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

Preview Lab → · Contrast checker → · Palette generator →

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