#4D2F97#4D2F97

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

Color values

HEX#4D2F97
RGBrgb(77, 47, 151)
HSLhsl(257, 53%, 39%)
HSVhsv(257, 69%, 59%)
CMYKcmyk(49%, 68.9%, 0%, 40.8%)
CIE-LABlab(29.02, 39.31, -52.37)
CIE-LCHlch(29.02, 65.48, 306.89°)
OKLaboklab(40.52% 0.0567 -0.1501)
OKLCHoklch(40.52% 0.16 290.7)
XYZxyz(9.6614, 5.8448, 29.8913)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2F97 #79972F
analogous
#2F4597 #4D2F97 #812F97
triadic
#4D2F97 #974D2F #2F974D
tetradic
#4D2F97 #972F45 #79972F #2F9781
square
#4D2F97 #972F45 #79972F #2F9781
split-complementary
#4D2F97 #97812F #45972F
monochromatic
#1D123A #352068 #4D2F97 #6640C3 #8B6ED2

Accessibility & contrast

On white

9.68
#4D2F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#4D2F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2F97
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2F97#FFFFFF#000000##FFFFFF
##4D2F971.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4d2f97;
/* rgb */ color: rgb(77, 47, 151);
/* oklch */ color: oklch(40.5% 0.160 290.7);
Tailwind
colors: {
  custom: {
    50: '#866ab6',
    500: '#4d2f97',
    950: '#000000',
  },
}
SCSS
$custom: #4d2f97;
$custom-light: #866ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2f97",
  "rgb": {
    "r": 77,
    "g": 47,
    "b": 151
  },
  "hsl": {
    "h": 257.308,
    "s": 52.525,
    "l": 38.824
  },
  "oklch": {
    "l": 0.40519,
    "c": 0.16043,
    "h": 290.7
  },
  "luminance": 0.05845
}

Semantic roles & 50–950 ramp

primary
#4D2F97
secondary
#A2B968
accent
#DC4CB2
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4D2F97

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

Preview Lab → · Contrast checker → · Palette generator →

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