#4D2E97#4D2E97

#4D2E97 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.4% C 0.162 H 290.9°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#4D2E97
RGBrgb(77, 46, 151)
HSLhsl(258, 53%, 39%)
HSVhsv(258, 70%, 59%)
CMYKcmyk(49%, 69.5%, 0%, 40.8%)
CIE-LABlab(28.81, 39.87, -52.70)
CIE-LCHlch(28.81, 66.08, 307.11°)
OKLaboklab(40.37% 0.0577 -0.151)
OKLCHoklch(40.37% 0.162 290.9)
XYZxyz(9.6219, 5.7658, 29.8781)
Luminance0.0577 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2E97 #78972E
analogous
#2E4397 #4D2E97 #812E97
triadic
#4D2E97 #974D2E #2E974D
tetradic
#4D2E97 #972E43 #78972E #2E9781
square
#4D2E97 #972E43 #78972E #2E9781
split-complementary
#4D2E97 #97812E #43972E
monochromatic
#1D1139 #352068 #4D2E97 #663EC4 #8B6DD2

Accessibility & contrast

On white

9.75
#4D2E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#4D2E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2E97
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2E97#FFFFFF#000000##FFFFFF
##4D2E971.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469A
Deuteranopia (green-blind)
#004295
Tritanopia (blue-blind)
#35485F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4d2e97;
/* rgb */ color: rgb(77, 46, 151);
/* oklch */ color: oklch(40.4% 0.162 290.9);
Tailwind
colors: {
  custom: {
    50: '#8669b6',
    500: '#4d2e97',
    950: '#000000',
  },
}
SCSS
$custom: #4d2e97;
$custom-light: #8669b6;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2e97",
  "rgb": {
    "r": 77,
    "g": 46,
    "b": 151
  },
  "hsl": {
    "h": 257.714,
    "s": 53.299,
    "l": 38.627
  },
  "oklch": {
    "l": 0.40373,
    "c": 0.1617,
    "h": 290.9
  },
  "luminance": 0.05766
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4D2E97

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

Preview Lab → · Contrast checker → · Palette generator →

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