#4D2D98#4D2D98

#4D2D98 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.3% C 0.164 H 290.9°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#4D2D98
RGBrgb(77, 45, 152)
HSLhsl(258, 54%, 39%)
HSVhsv(258, 70%, 60%)
CMYKcmyk(49.3%, 70.4%, 0%, 40.4%)
CIE-LABlab(28.70, 40.71, -53.50)
CIE-LCHlch(28.70, 67.23, 307.27°)
OKLaboklab(40.32% 0.0585 -0.1534)
OKLCHoklch(40.32% 0.164 290.9)
XYZxyz(9.6648, 5.7212, 30.2947)
Luminance0.0572 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2D98 #78982D
analogous
#2D4298 #4D2D98 #822D98
triadic
#4D2D98 #984D2D #2D984D
tetradic
#4D2D98 #982D42 #78982D #2D9882
square
#4D2D98 #982D42 #78982D #2D9882
split-complementary
#4D2D98 #98822D #42982D
monochromatic
#1D113A #351F69 #4D2D98 #663DC5 #8B6CD3

Accessibility & contrast

On white

9.79
#4D2D98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#4D2D98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2D98
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2D98#FFFFFF#000000##FFFFFF
##4D2D981.009.792.149.79
#FFFFFF9.791.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459B
Deuteranopia (green-blind)
#004196
Tritanopia (blue-blind)
#35485F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4d2d98;
/* rgb */ color: rgb(77, 45, 152);
/* oklch */ color: oklch(40.3% 0.164 290.9);
Tailwind
colors: {
  custom: {
    50: '#8668b7',
    500: '#4d2d98',
    950: '#000000',
  },
}
SCSS
$custom: #4d2d98;
$custom-light: #8668b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2d98",
  "rgb": {
    "r": 77,
    "g": 45,
    "b": 152
  },
  "hsl": {
    "h": 257.944,
    "s": 54.315,
    "l": 38.627
  },
  "oklch": {
    "l": 0.40316,
    "c": 0.16419,
    "h": 290.9
  },
  "luminance": 0.05722
}

Semantic roles & 50–950 ramp

primary
#4D2D98
secondary
#A1BA66
accent
#DE4AB2
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4D2D98

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

Preview Lab → · Contrast checker → · Palette generator →

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