#4D308F#4D308F

#4D308F is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.0% C 0.149 H 292.4°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#4D308F
RGBrgb(77, 48, 143)
HSLhsl(258, 50%, 37%)
HSVhsv(258, 66%, 56%)
CMYKcmyk(46.2%, 66.4%, 0%, 43.9%)
CIE-LABlab(28.58, 36.38, -48.17)
CIE-LCHlch(28.58, 60.36, 307.06°)
OKLaboklab(40% 0.0567 -0.1377)
OKLCHoklch(40% 0.149 292.4)
XYZxyz(9.0741, 5.6746, 26.5985)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D308F #728F30
analogous
#30428F #4D308F #7D308F
triadic
#4D308F #8F4D30 #308F4D
tetradic
#4D308F #8F3042 #728F30 #308F7D
square
#4D308F #8F3042 #728F30 #308F7D
split-complementary
#4D308F #8F7D30 #428F30
monochromatic
#1C1133 #342161 #4D308F #663FBD #8A6CCE

Accessibility & contrast

On white

9.84
#4D308F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#4D308F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D308F
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D308F#FFFFFF#000000##FFFFFF
##4D308F1.009.842.149.84
#FFFFFF9.841.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004592
Deuteranopia (green-blind)
#00428D
Tritanopia (blue-blind)
#3A475B
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4d308f;
/* rgb */ color: rgb(77, 48, 143);
/* oklch */ color: oklch(40.0% 0.149 292.4);
Tailwind
colors: {
  custom: {
    50: '#856ab1',
    500: '#4d308f',
    950: '#000000',
  },
}
SCSS
$custom: #4d308f;
$custom-light: #856ab1;
$custom-dark: #000000;
JSON
{
  "hex": "#4d308f",
  "rgb": {
    "r": 77,
    "g": 48,
    "b": 143
  },
  "hsl": {
    "h": 258.316,
    "s": 49.738,
    "l": 37.451
  },
  "oklch": {
    "l": 0.39998,
    "c": 0.14897,
    "h": 292.4
  },
  "luminance": 0.05675
}

Semantic roles & 50–950 ramp

primary
#4D308F
secondary
#9DB566
accent
#D94FAF
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #4D308F

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

Preview Lab → · Contrast checker → · Palette generator →

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