#4D2D97#4D2D97

#4D2D97 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.2% C 0.163 H 291.1°. Best body text is #FFFFFF at 9.82:1 contrast (WCAG AA passes).

Color values

HEX#4D2D97
RGBrgb(77, 45, 151)
HSLhsl(258, 54%, 38%)
HSVhsv(258, 70%, 59%)
CMYKcmyk(49%, 70.2%, 0%, 40.8%)
CIE-LABlab(28.61, 40.42, -53.03)
CIE-LCHlch(28.61, 66.68, 307.32°)
OKLaboklab(40.23% 0.0587 -0.152)
OKLCHoklch(40.23% 0.163 291.1)
XYZxyz(9.5833, 5.6886, 29.8652)
Luminance0.0569 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2D97 #77972D
analogous
#2D4297 #4D2D97 #822D97
triadic
#4D2D97 #974D2D #2D974D
tetradic
#4D2D97 #972D42 #77972D #2D9782
square
#4D2D97 #972D42 #77972D #2D9782
split-complementary
#4D2D97 #97822D #42972D
monochromatic
#1D1139 #351F68 #4D2D97 #663CC5 #8B6BD3

Accessibility & contrast

On white

9.82
#4D2D97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D2D97
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2D97#FFFFFF#000000##FFFFFF
##4D2D971.009.822.149.82
#FFFFFF9.821.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459A
Deuteranopia (green-blind)
#004195
Tritanopia (blue-blind)
#35485E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4d2d97;
/* rgb */ color: rgb(77, 45, 151);
/* oklch */ color: oklch(40.2% 0.163 291.1);
Tailwind
colors: {
  custom: {
    50: '#8668b6',
    500: '#4d2d97',
    950: '#000000',
  },
}
SCSS
$custom: #4d2d97;
$custom-light: #8668b6;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2d97",
  "rgb": {
    "r": 77,
    "g": 45,
    "b": 151
  },
  "hsl": {
    "h": 258.113,
    "s": 54.082,
    "l": 38.431
  },
  "oklch": {
    "l": 0.40229,
    "c": 0.16296,
    "h": 291.1
  },
  "luminance": 0.05689
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4D2D97

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

Preview Lab → · Contrast checker → · Palette generator →

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