#4D308E#4D308E

#4D308E is a dark, vivid violet. Relative luminance 0.056; OKLCH L 39.9% C 0.148 H 292.6°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#4D308E
RGBrgb(77, 48, 142)
HSLhsl(259, 49%, 37%)
HSVhsv(259, 66%, 56%)
CMYKcmyk(45.8%, 66.2%, 0%, 44.3%)
CIE-LABlab(28.50, 36.09, -47.68)
CIE-LCHlch(28.50, 59.80, 307.12°)
OKLaboklab(39.92% 0.0568 -0.1363)
OKLCHoklch(39.92% 0.148 292.6)
XYZxyz(8.9987, 5.6444, 26.2013)
Luminance0.0565 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D308E #718E30
analogous
#30428E #4D308E #7C308E
triadic
#4D308E #8E4D30 #308E4D
tetradic
#4D308E #8E3042 #718E30 #308E7C
square
#4D308E #8E3042 #718E30 #308E7C
split-complementary
#4D308E #8E7C30 #428E30
monochromatic
#1B1133 #342160 #4D308E #663FBC #896BCD

Accessibility & contrast

On white

9.86
#4D308E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#4D308E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D308E
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D308E#FFFFFF#000000##FFFFFF
##4D308E1.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004491
Deuteranopia (green-blind)
#00418C
Tritanopia (blue-blind)
#3A465A
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4d308e;
/* rgb */ color: rgb(77, 48, 142);
/* oklch */ color: oklch(39.9% 0.148 292.6);
Tailwind
colors: {
  custom: {
    50: '#846ab0',
    500: '#4d308e',
    950: '#000000',
  },
}
SCSS
$custom: #4d308e;
$custom-light: #846ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#4d308e",
  "rgb": {
    "r": 77,
    "g": 48,
    "b": 142
  },
  "hsl": {
    "h": 258.511,
    "s": 49.474,
    "l": 37.255
  },
  "oklch": {
    "l": 0.39916,
    "c": 0.14768,
    "h": 292.6
  },
  "luminance": 0.05645
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4D308E

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

Preview Lab → · Contrast checker → · Palette generator →

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