#4D2BA9#4D2BA9

#4D2BA9 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.6% C 0.187 H 287.6°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#4D2BA9
RGBrgb(77, 43, 169)
HSLhsl(256, 59%, 42%)
HSVhsv(256, 75%, 66%)
CMYKcmyk(54.4%, 74.6%, 0%, 33.7%)
CIE-LABlab(29.84, 46.71, -61.95)
CIE-LCHlch(29.84, 77.59, 307.02°)
OKLaboklab(41.59% 0.0567 -0.1782)
OKLCHoklch(41.59% 0.187 287.6)
XYZxyz(11.0838, 6.1695, 38.1352)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2BA9 #87A92B
analogous
#2B48A9 #4D2BA9 #8C2BA9
triadic
#4D2BA9 #A94D2B #2BA94D
tetradic
#4D2BA9 #A92B48 #87A92B #2BA98C
square
#4D2BA9 #A92B48 #87A92B #2BA98C
split-complementary
#4D2BA9 #A98C2B #48A92B
monochromatic
#211247 #371F78 #4D2BA9 #6842CF #8F73DB

Accessibility & contrast

On white

9.40
#4D2BA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#4D2BA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2BA9
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2BA9#FFFFFF#000000##FFFFFF
##4D2BA91.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AD
Deuteranopia (green-blind)
#0043A7
Tritanopia (blue-blind)
#274E68
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4d2ba9;
/* rgb */ color: rgb(77, 43, 169);
/* oklch */ color: oklch(41.6% 0.187 287.6);
Tailwind
colors: {
  custom: {
    50: '#8968c4',
    500: '#4d2ba9',
    950: '#000000',
  },
}
SCSS
$custom: #4d2ba9;
$custom-light: #8968c4;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2ba9",
  "rgb": {
    "r": 77,
    "g": 43,
    "b": 169
  },
  "hsl": {
    "h": 256.19,
    "s": 59.434,
    "l": 41.569
  },
  "oklch": {
    "l": 0.41591,
    "c": 0.18696,
    "h": 287.6
  },
  "luminance": 0.0617
}

Semantic roles & 50–950 ramp

primary
#4D2BA9
secondary
#ACC36D
accent
#E345B8
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0613
muted
#7D7A82

Preview Lab

Preview with #4D2BA9

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

Preview Lab → · Contrast checker → · Palette generator →

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