#4D308D#4D308D

#4D308D is a dark, vivid violet. Relative luminance 0.056; OKLCH L 39.8% C 0.146 H 292.9°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#4D308D
RGBrgb(77, 48, 141)
HSLhsl(259, 49%, 37%)
HSVhsv(259, 66%, 55%)
CMYKcmyk(45.4%, 66%, 0%, 44.7%)
CIE-LABlab(28.42, 35.79, -47.19)
CIE-LCHlch(28.42, 59.23, 307.18°)
OKLaboklab(39.83% 0.057 -0.1349)
OKLCHoklch(39.83% 0.146 292.9)
XYZxyz(8.9239, 5.6145, 25.8077)
Luminance0.0561 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D308D #708D30
analogous
#30428D #4D308D #7C308D
triadic
#4D308D #8D4D30 #308D4D
tetradic
#4D308D #8D3042 #708D30 #308D7C
square
#4D308D #8D3042 #708D30 #308D7C
split-complementary
#4D308D #8D7C30 #428D30
monochromatic
#1B1132 #34205F #4D308D #6640BB #896BCD

Accessibility & contrast

On white

9.89
#4D308D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#4D308D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D308D
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D308D#FFFFFF#000000##FFFFFF
##4D308D1.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004490
Deuteranopia (green-blind)
#00418B
Tritanopia (blue-blind)
#3B465A
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4d308d;
/* rgb */ color: rgb(77, 48, 141);
/* oklch */ color: oklch(39.8% 0.146 292.9);
Tailwind
colors: {
  custom: {
    50: '#846aaf',
    500: '#4d308d',
    950: '#000000',
  },
}
SCSS
$custom: #4d308d;
$custom-light: #846aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#4d308d",
  "rgb": {
    "r": 77,
    "g": 48,
    "b": 141
  },
  "hsl": {
    "h": 258.71,
    "s": 49.206,
    "l": 37.059
  },
  "oklch": {
    "l": 0.39834,
    "c": 0.14639,
    "h": 292.9
  },
  "luminance": 0.05615
}

Semantic roles & 50–950 ramp

primary
#4D308D
secondary
#9BB465
accent
#D94FAE
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4D308D

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

Preview Lab → · Contrast checker → · Palette generator →

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