#4D309C#4D309C

#4D309C is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.1% C 0.165 H 289.4°. Best body text is #FFFFFF at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#4D309C
RGBrgb(77, 48, 156)
HSLhsl(256, 53%, 40%)
HSVhsv(256, 69%, 61%)
CMYKcmyk(50.6%, 69.2%, 0%, 38.8%)
CIE-LABlab(29.64, 40.22, -54.40)
CIE-LCHlch(29.64, 67.66, 306.48°)
OKLaboklab(41.1% 0.0549 -0.156)
OKLCHoklch(41.1% 0.165 289.4)
XYZxyz(10.1165, 6.0916, 32.0888)
Luminance0.0609 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D309C #7F9C30
analogous
#30499C #4D309C #83309C
triadic
#4D309C #9C4D30 #309C4D
tetradic
#4D309C #9C3049 #7F9C30 #309C83
square
#4D309C #9C3049 #7F9C30 #309C83
split-complementary
#4D309C #9C8330 #499C30
monochromatic
#1F133E #36226D #4D309C #6744C5 #8D73D4

Accessibility & contrast

On white

9.47
#4D309C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#4D309C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D309C
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D309C#FFFFFF#000000##FFFFFF
##4D309C1.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489F
Deuteranopia (green-blind)
#00439A
Tritanopia (blue-blind)
#324B62
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4d309c;
/* rgb */ color: rgb(77, 48, 156);
/* oklch */ color: oklch(41.1% 0.165 289.4);
Tailwind
colors: {
  custom: {
    50: '#866aba',
    500: '#4d309c',
    950: '#000000',
  },
}
SCSS
$custom: #4d309c;
$custom-light: #866aba;
$custom-dark: #000000;
JSON
{
  "hex": "#4d309c",
  "rgb": {
    "r": 77,
    "g": 48,
    "b": 156
  },
  "hsl": {
    "h": 256.111,
    "s": 52.941,
    "l": 40
  },
  "oklch": {
    "l": 0.41098,
    "c": 0.16542,
    "h": 289.4
  },
  "luminance": 0.06092
}

Semantic roles & 50–950 ramp

primary
#4D309C
secondary
#A6BC6C
accent
#DC4BB5
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4D309C

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

Preview Lab → · Contrast checker → · Palette generator →

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