#4D2E98#4D2E98

#4D2E98 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.5% C 0.163 H 290.7°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#4D2E98
RGBrgb(77, 46, 152)
HSLhsl(258, 54%, 39%)
HSVhsv(258, 70%, 60%)
CMYKcmyk(49.3%, 69.7%, 0%, 40.4%)
CIE-LABlab(28.90, 40.16, -53.17)
CIE-LCHlch(28.90, 66.64, 307.06°)
OKLaboklab(40.46% 0.0576 -0.1524)
OKLCHoklch(40.46% 0.163 290.7)
XYZxyz(9.7034, 5.7984, 30.3076)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2E98 #79982E
analogous
#2E4498 #4D2E98 #822E98
triadic
#4D2E98 #984D2E #2E984D
tetradic
#4D2E98 #982E44 #79982E #2E9882
square
#4D2E98 #982E44 #79982E #2E9882
split-complementary
#4D2E98 #98822E #44982E
monochromatic
#1D123A #352069 #4D2E98 #663EC5 #8B6DD3

Accessibility & contrast

On white

9.72
#4D2E98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#4D2E98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2E98
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2E98#FFFFFF#000000##FFFFFF
##4D2E981.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469B
Deuteranopia (green-blind)
#004296
Tritanopia (blue-blind)
#34495F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4d2e98;
/* rgb */ color: rgb(77, 46, 152);
/* oklch */ color: oklch(40.5% 0.163 290.7);
Tailwind
colors: {
  custom: {
    50: '#8669b7',
    500: '#4d2e98',
    950: '#000000',
  },
}
SCSS
$custom: #4d2e98;
$custom-light: #8669b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2e98",
  "rgb": {
    "r": 77,
    "g": 46,
    "b": 152
  },
  "hsl": {
    "h": 257.547,
    "s": 53.535,
    "l": 38.824
  },
  "oklch": {
    "l": 0.4046,
    "c": 0.16294,
    "h": 290.7
  },
  "luminance": 0.05799
}

Semantic roles & 50–950 ramp

primary
#4D2E98
secondary
#A2BA68
accent
#DD4BB2
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4D2E98

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

Preview Lab → · Contrast checker → · Palette generator →

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