#4D2B98#4D2B98

#4D2B98 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.0% C 0.167 H 291.3°. Best body text is #FFFFFF at 9.93:1 contrast (WCAG AA passes).

Color values

HEX#4D2B98
RGBrgb(77, 43, 152)
HSLhsl(259, 56%, 38%)
HSVhsv(259, 72%, 60%)
CMYKcmyk(49.3%, 71.7%, 0%, 40.4%)
CIE-LABlab(28.31, 41.80, -54.14)
CIE-LCHlch(28.31, 68.40, 307.67°)
OKLaboklab(40.04% 0.0605 -0.1553)
OKLCHoklch(40.04% 0.167 291.3)
XYZxyz(9.5903, 5.5722, 30.2699)
Luminance0.0557 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2B98 #76982B
analogous
#2B3F98 #4D2B98 #832B98
triadic
#4D2B98 #984D2B #2B984D
tetradic
#4D2B98 #982B3F #76982B #2B9883
square
#4D2B98 #982B3F #76982B #2B9883
split-complementary
#4D2B98 #98832B #3F982B
monochromatic
#1D1039 #351E68 #4D2B98 #6539C7 #8A69D5

Accessibility & contrast

On white

9.93
#4D2B98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#4D2B98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2B98
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2B98#FFFFFF#000000##FFFFFF
##4D2B981.009.932.119.93
#FFFFFF9.931.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449B
Deuteranopia (green-blind)
#004096
Tritanopia (blue-blind)
#35475E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4d2b98;
/* rgb */ color: rgb(77, 43, 152);
/* oklch */ color: oklch(40.0% 0.167 291.3);
Tailwind
colors: {
  custom: {
    50: '#8667b7',
    500: '#4d2b98',
    950: '#000000',
  },
}
SCSS
$custom: #4d2b98;
$custom-light: #8667b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2b98",
  "rgb": {
    "r": 77,
    "g": 43,
    "b": 152
  },
  "hsl": {
    "h": 258.716,
    "s": 55.897,
    "l": 38.235
  },
  "oklch": {
    "l": 0.40037,
    "c": 0.16664,
    "h": 291.3
  },
  "luminance": 0.05573
}

Semantic roles & 50–950 ramp

primary
#4D2B98
secondary
#A0BB64
accent
#DF49B0
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4D2B98

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

Preview Lab → · Contrast checker → · Palette generator →

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