#4D3096#4D3096

#4D3096 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.6% C 0.158 H 290.7°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#4D3096
RGBrgb(77, 48, 150)
HSLhsl(257, 52%, 39%)
HSVhsv(257, 68%, 59%)
CMYKcmyk(48.7%, 68%, 0%, 41.2%)
CIE-LABlab(29.14, 38.45, -51.55)
CIE-LCHlch(29.14, 64.31, 306.71°)
OKLaboklab(40.58% 0.0558 -0.1477)
OKLCHoklch(40.58% 0.158 290.7)
XYZxyz(9.6210, 5.8933, 29.4788)
Luminance0.0589 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D3096 #799630
analogous
#304696 #4D3096 #803096
triadic
#4D3096 #964D30 #30964D
tetradic
#4D3096 #963046 #799630 #309680
square
#4D3096 #963046 #799630 #309680
split-complementary
#4D3096 #968030 #469630
monochromatic
#1D1239 #352168 #4D3096 #6641C2 #8B6FD1

Accessibility & contrast

On white

9.64
#4D3096 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#4D3096 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D3096
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D3096#FFFFFF#000000##FFFFFF
##4D30961.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004699
Deuteranopia (green-blind)
#004294
Tritanopia (blue-blind)
#36495F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4d3096;
/* rgb */ color: rgb(77, 48, 150);
/* oklch */ color: oklch(40.6% 0.158 290.7);
Tailwind
colors: {
  custom: {
    50: '#866ab6',
    500: '#4d3096',
    950: '#000000',
  },
}
SCSS
$custom: #4d3096;
$custom-light: #866ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#4d3096",
  "rgb": {
    "r": 77,
    "g": 48,
    "b": 150
  },
  "hsl": {
    "h": 257.059,
    "s": 51.515,
    "l": 38.824
  },
  "oklch": {
    "l": 0.40582,
    "c": 0.15788,
    "h": 290.7
  },
  "luminance": 0.05894
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4D3096

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

Preview Lab → · Contrast checker → · Palette generator →

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