#4D309A#4D309A

#4D309A is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.9% C 0.163 H 289.8°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#4D309A
RGBrgb(77, 48, 154)
HSLhsl(256, 52%, 40%)
HSVhsv(256, 69%, 60%)
CMYKcmyk(50%, 68.8%, 0%, 39.6%)
CIE-LABlab(29.47, 39.63, -53.46)
CIE-LCHlch(29.47, 66.54, 306.55°)
OKLaboklab(40.92% 0.0552 -0.1533)
OKLCHoklch(40.92% 0.163 289.8)
XYZxyz(9.9486, 6.0244, 31.2042)
Luminance0.0602 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D309A #7D9A30
analogous
#30489A #4D309A #82309A
triadic
#4D309A #9A4D30 #309A4D
tetradic
#4D309A #9A3048 #7D9A30 #309A82
square
#4D309A #9A3048 #7D9A30 #309A82
split-complementary
#4D309A #9A8230 #489A30
monochromatic
#1E133D #36216B #4D309A #6643C4 #8C72D3

Accessibility & contrast

On white

9.52
#4D309A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#4D309A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D309A
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D309A#FFFFFF#000000##FFFFFF
##4D309A1.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479D
Deuteranopia (green-blind)
#004398
Tritanopia (blue-blind)
#334A61
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4d309a;
/* rgb */ color: rgb(77, 48, 154);
/* oklch */ color: oklch(40.9% 0.163 289.8);
Tailwind
colors: {
  custom: {
    50: '#866ab9',
    500: '#4d309a',
    950: '#000000',
  },
}
SCSS
$custom: #4d309a;
$custom-light: #866ab9;
$custom-dark: #000000;
JSON
{
  "hex": "#4d309a",
  "rgb": {
    "r": 77,
    "g": 48,
    "b": 154
  },
  "hsl": {
    "h": 256.415,
    "s": 52.475,
    "l": 39.608
  },
  "oklch": {
    "l": 0.40925,
    "c": 0.16292,
    "h": 289.8
  },
  "luminance": 0.06025
}

Semantic roles & 50–950 ramp

primary
#4D309A
secondary
#A5BB6B
accent
#DC4CB5
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #4D309A

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

Preview Lab → · Contrast checker → · Palette generator →

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