#4D3095#4D3095

#4D3095 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.5% C 0.157 H 290.9°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#4D3095
RGBrgb(77, 48, 149)
HSLhsl(257, 51%, 39%)
HSVhsv(257, 68%, 58%)
CMYKcmyk(48.3%, 67.8%, 0%, 41.6%)
CIE-LABlab(29.06, 38.15, -51.07)
CIE-LCHlch(29.06, 63.75, 306.76°)
OKLaboklab(40.5% 0.056 -0.1463)
OKLCHoklch(40.5% 0.157 290.9)
XYZxyz(9.5408, 5.8613, 29.0566)
Luminance0.0586 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D3095 #789530
analogous
#304595 #4D3095 #7F3095
triadic
#4D3095 #954D30 #30954D
tetradic
#4D3095 #953045 #789530 #30957F
square
#4D3095 #953045 #789530 #30957F
split-complementary
#4D3095 #957F30 #459530
monochromatic
#1D1238 #352167 #4D3095 #6641C2 #8B6FD1

Accessibility & contrast

On white

9.67
#4D3095 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D3095
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D3095#FFFFFF#000000##FFFFFF
##4D30951.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004698
Deuteranopia (green-blind)
#004293
Tritanopia (blue-blind)
#36495E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4d3095;
/* rgb */ color: rgb(77, 48, 149);
/* oklch */ color: oklch(40.5% 0.157 290.9);
Tailwind
colors: {
  custom: {
    50: '#856ab5',
    500: '#4d3095',
    950: '#000000',
  },
}
SCSS
$custom: #4d3095;
$custom-light: #856ab5;
$custom-dark: #000000;
JSON
{
  "hex": "#4d3095",
  "rgb": {
    "r": 77,
    "g": 48,
    "b": 149
  },
  "hsl": {
    "h": 257.228,
    "s": 51.269,
    "l": 38.627
  },
  "oklch": {
    "l": 0.40498,
    "c": 0.15662,
    "h": 290.9
  },
  "luminance": 0.05862
}

Semantic roles & 50–950 ramp

primary
#4D3095
secondary
#A1B869
accent
#DB4DB2
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4D3095

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

Preview Lab → · Contrast checker → · Palette generator →

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