#4D308C#4D308C

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

Color values

HEX#4D308C
RGBrgb(77, 48, 140)
HSLhsl(259, 49%, 37%)
HSVhsv(259, 66%, 55%)
CMYKcmyk(45%, 65.7%, 0%, 45.1%)
CIE-LABlab(28.34, 35.50, -46.70)
CIE-LCHlch(28.34, 58.66, 307.24°)
OKLaboklab(39.75% 0.0571 -0.1334)
OKLCHoklch(39.75% 0.145 293.2)
XYZxyz(8.8499, 5.5849, 25.4176)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D308C #6F8C30
analogous
#30418C #4D308C #7B308C
triadic
#4D308C #8C4D30 #308C4D
tetradic
#4D308C #8C3041 #6F8C30 #308C7B
square
#4D308C #8C3041 #6F8C30 #308C7B
split-complementary
#4D308C #8C7B30 #418C30
monochromatic
#1B1131 #34205E #4D308C #6640BA #896ACC

Accessibility & contrast

On white

9.92
#4D308C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D308C
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D308C#FFFFFF#000000##FFFFFF
##4D308C1.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448F
Deuteranopia (green-blind)
#00418A
Tritanopia (blue-blind)
#3B4659
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4d308c;
/* rgb */ color: rgb(77, 48, 140);
/* oklch */ color: oklch(39.8% 0.145 293.2);
Tailwind
colors: {
  custom: {
    50: '#846aae',
    500: '#4d308c',
    950: '#000000',
  },
}
SCSS
$custom: #4d308c;
$custom-light: #846aae;
$custom-dark: #000000;
JSON
{
  "hex": "#4d308c",
  "rgb": {
    "r": 77,
    "g": 48,
    "b": 140
  },
  "hsl": {
    "h": 258.913,
    "s": 48.936,
    "l": 36.863
  },
  "oklch": {
    "l": 0.39753,
    "c": 0.1451,
    "h": 293.2
  },
  "luminance": 0.05585
}

Semantic roles & 50–950 ramp

primary
#4D308C
secondary
#9AB364
accent
#D84FAD
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4D308C

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

Preview Lab → · Contrast checker → · Palette generator →

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