#4D3097#4D3097

#4D3097 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.7% C 0.159 H 290.5°. Best body text is #FFFFFF at 9.61:1 contrast (WCAG AA passes).

Color values

HEX#4D3097
RGBrgb(77, 48, 151)
HSLhsl(257, 52%, 39%)
HSVhsv(257, 68%, 59%)
CMYKcmyk(49%, 68.2%, 0%, 40.8%)
CIE-LABlab(29.22, 38.74, -52.03)
CIE-LCHlch(29.22, 64.87, 306.67°)
OKLaboklab(40.67% 0.0557 -0.1491)
OKLCHoklch(40.67% 0.159 290.5)
XYZxyz(9.7018, 5.9257, 29.9047)
Luminance0.0593 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D3097 #7A9730
analogous
#304797 #4D3097 #813097
triadic
#4D3097 #974D30 #30974D
tetradic
#4D3097 #973047 #7A9730 #309781
square
#4D3097 #973047 #7A9730 #309781
split-complementary
#4D3097 #978130 #479730
monochromatic
#1E123A #352169 #4D3097 #6641C3 #8B70D2

Accessibility & contrast

On white

9.61
#4D3097 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#4D3097 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D3097
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D3097#FFFFFF#000000##FFFFFF
##4D30971.009.612.199.61
#FFFFFF9.611.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479A
Deuteranopia (green-blind)
#004395
Tritanopia (blue-blind)
#35495F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4d3097;
/* rgb */ color: rgb(77, 48, 151);
/* oklch */ color: oklch(40.7% 0.159 290.5);
Tailwind
colors: {
  custom: {
    50: '#866ab6',
    500: '#4d3097',
    950: '#000000',
  },
}
SCSS
$custom: #4d3097;
$custom-light: #866ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#4d3097",
  "rgb": {
    "r": 77,
    "g": 48,
    "b": 151
  },
  "hsl": {
    "h": 256.893,
    "s": 51.759,
    "l": 39.02
  },
  "oklch": {
    "l": 0.40667,
    "c": 0.15914,
    "h": 290.5
  },
  "luminance": 0.05926
}

Semantic roles & 50–950 ramp

primary
#4D3097
secondary
#A3B96A
accent
#DB4DB3
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #4D3097

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

Preview Lab → · Contrast checker → · Palette generator →

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