#4D308A#4D308A

#4D308A is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.6% C 0.143 H 293.7°. Best body text is #FFFFFF at 9.97:1 contrast (WCAG AA passes).

Color values

HEX#4D308A
RGBrgb(77, 48, 138)
HSLhsl(259, 48%, 36%)
HSVhsv(259, 65%, 54%)
CMYKcmyk(44.2%, 65.2%, 0%, 45.9%)
CIE-LABlab(28.18, 34.92, -45.71)
CIE-LCHlch(28.18, 57.52, 307.38°)
OKLaboklab(39.59% 0.0573 -0.1305)
OKLCHoklch(39.59% 0.143 293.7)
XYZxyz(8.7037, 5.5264, 24.6480)
Luminance0.0553 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D308A #6D8A30
analogous
#30408A #4D308A #7A308A
triadic
#4D308A #8A4D30 #308A4D
tetradic
#4D308A #8A3040 #6D8A30 #308A7A
square
#4D308A #8A3040 #6D8A30 #308A7A
split-complementary
#4D308A #8A7A30 #408A30
monochromatic
#1A102F #34205D #4D308A #6640B7 #8969CB

Accessibility & contrast

On white

9.97
#4D308A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#4D308A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D308A
9.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D308A#FFFFFF#000000##FFFFFF
##4D308A1.009.972.119.97
#FFFFFF9.971.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438D
Deuteranopia (green-blind)
#004188
Tritanopia (blue-blind)
#3C4558
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4d308a;
/* rgb */ color: rgb(77, 48, 138);
/* oklch */ color: oklch(39.6% 0.143 293.7);
Tailwind
colors: {
  custom: {
    50: '#846aad',
    500: '#4d308a',
    950: '#000000',
  },
}
SCSS
$custom: #4d308a;
$custom-light: #846aad;
$custom-dark: #000000;
JSON
{
  "hex": "#4d308a",
  "rgb": {
    "r": 77,
    "g": 48,
    "b": 138
  },
  "hsl": {
    "h": 259.333,
    "s": 48.387,
    "l": 36.471
  },
  "oklch": {
    "l": 0.39591,
    "c": 0.14251,
    "h": 293.7
  },
  "luminance": 0.05527
}

Semantic roles & 50–950 ramp

primary
#4D308A
secondary
#99B264
accent
#D850AC
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4D308A

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

Preview Lab → · Contrast checker → · Palette generator →

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