#4D2BA7#4D2BA7

#4D2BA7 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.4% C 0.185 H 288.0°. Best body text is #FFFFFF at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#4D2BA7
RGBrgb(77, 43, 167)
HSLhsl(256, 59%, 41%)
HSVhsv(256, 74%, 65%)
CMYKcmyk(53.9%, 74.3%, 0%, 34.5%)
CIE-LABlab(29.65, 46.13, -61.05)
CIE-LCHlch(29.65, 76.52, 307.08°)
OKLaboklab(41.4% 0.0572 -0.1755)
OKLCHoklch(41.4% 0.185 288)
XYZxyz(10.8974, 6.0950, 37.1540)
Luminance0.0610 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2BA7 #85A72B
analogous
#2B47A7 #4D2BA7 #8B2BA7
triadic
#4D2BA7 #A74D2B #2BA74D
tetradic
#4D2BA7 #A72B47 #85A72B #2BA78B
square
#4D2BA7 #A72B47 #85A72B #2BA78B
split-complementary
#4D2BA7 #A78B2B #47A72B
monochromatic
#201246 #371E76 #4D2BA7 #6841CE #8F72DB

Accessibility & contrast

On white

9.46
#4D2BA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#4D2BA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2BA7
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2BA7#FFFFFF#000000##FFFFFF
##4D2BA71.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AB
Deuteranopia (green-blind)
#0043A5
Tritanopia (blue-blind)
#294D67
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4d2ba7;
/* rgb */ color: rgb(77, 43, 167);
/* oklch */ color: oklch(41.4% 0.185 288.0);
Tailwind
colors: {
  custom: {
    50: '#8868c2',
    500: '#4d2ba7',
    950: '#000000',
  },
}
SCSS
$custom: #4d2ba7;
$custom-light: #8868c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2ba7",
  "rgb": {
    "r": 77,
    "g": 43,
    "b": 167
  },
  "hsl": {
    "h": 256.452,
    "s": 59.048,
    "l": 41.176
  },
  "oklch": {
    "l": 0.41404,
    "c": 0.1846,
    "h": 288
  },
  "luminance": 0.06096
}

Semantic roles & 50–950 ramp

primary
#4D2BA7
secondary
#AAC26C
accent
#E246B7
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4D2BA7

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

Preview Lab → · Contrast checker → · Palette generator →

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