#4D2A97#4D2A97

#4D2A97 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.8% C 0.167 H 291.7°. Best body text is #FFFFFF at 10.03:1 contrast (WCAG AA passes).

Color values

HEX#4D2A97
RGBrgb(77, 42, 151)
HSLhsl(259, 56%, 38%)
HSVhsv(259, 72%, 59%)
CMYKcmyk(49%, 72.2%, 0%, 40.8%)
CIE-LABlab(28.03, 42.05, -53.98)
CIE-LCHlch(28.03, 68.43, 307.91°)
OKLaboklab(39.81% 0.0617 -0.1548)
OKLCHoklch(39.81% 0.167 291.7)
XYZxyz(9.4729, 5.4677, 29.8284)
Luminance0.0547 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2A97 #74972A
analogous
#2A3D97 #4D2A97 #832A97
triadic
#4D2A97 #974D2A #2A974D
tetradic
#4D2A97 #972A3D #74972A #2A9783
square
#4D2A97 #972A3D #74972A #2A9783
split-complementary
#4D2A97 #97832A #3D972A
monochromatic
#1C0F37 #351D67 #4D2A97 #6537C7 #8A67D5

Accessibility & contrast

On white

10.03
#4D2A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#4D2A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2A97
10.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2A97#FFFFFF#000000##FFFFFF
##4D2A971.0010.032.0910.03
#FFFFFF10.031.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449A
Deuteranopia (green-blind)
#004095
Tritanopia (blue-blind)
#35465D
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4d2a97;
/* rgb */ color: rgb(77, 42, 151);
/* oklch */ color: oklch(39.8% 0.167 291.7);
Tailwind
colors: {
  custom: {
    50: '#8667b6',
    500: '#4d2a97',
    950: '#000000',
  },
}
SCSS
$custom: #4d2a97;
$custom-light: #8667b6;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2a97",
  "rgb": {
    "r": 77,
    "g": 42,
    "b": 151
  },
  "hsl": {
    "h": 259.266,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.39812,
    "c": 0.16662,
    "h": 291.7
  },
  "luminance": 0.05468
}

Semantic roles & 50–950 ramp

primary
#4D2A97
secondary
#9EBB62
accent
#E048AF
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4D2A97

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

Preview Lab → · Contrast checker → · Palette generator →

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