#4D3281#4D3281

#4D3281 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.2% C 0.128 H 295.7°. Best body text is #FFFFFF at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#4D3281
RGBrgb(77, 50, 129)
HSLhsl(261, 44%, 35%)
HSVhsv(261, 61%, 51%)
CMYKcmyk(40.3%, 61.2%, 0%, 49.4%)
CIE-LABlab(27.96, 31.10, -40.46)
CIE-LCHlch(27.96, 51.03, 307.55°)
OKLaboklab(39.22% 0.0554 -0.1151)
OKLCHoklch(39.22% 0.128 295.7)
XYZxyz(8.1626, 5.4438, 21.3853)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D3281 #668132
analogous
#323F81 #4D3281 #743281
triadic
#4D3281 #814D32 #32814D
tetradic
#4D3281 #81323F #668132 #328174
square
#4D3281 #81323F #668132 #328174
split-complementary
#4D3281 #817432 #3F8132
monochromatic
#181029 #332155 #4D3281 #6743AD #8869C5

Accessibility & contrast

On white

10.05
#4D3281 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#4D3281 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D3281
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D3281#FFFFFF#000000##FFFFFF
##4D32811.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004384
Deuteranopia (green-blind)
#0F417F
Tritanopia (blue-blind)
#404354
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4d3281;
/* rgb */ color: rgb(77, 50, 129);
/* oklch */ color: oklch(39.2% 0.128 295.7);
Tailwind
colors: {
  custom: {
    50: '#836ba6',
    500: '#4d3281',
    950: '#000000',
  },
}
SCSS
$custom: #4d3281;
$custom-light: #836ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#4d3281",
  "rgb": {
    "r": 77,
    "g": 50,
    "b": 129
  },
  "hsl": {
    "h": 260.506,
    "s": 44.134,
    "l": 35.098
  },
  "oklch": {
    "l": 0.39218,
    "c": 0.12768,
    "h": 295.7
  },
  "luminance": 0.05444
}

Semantic roles & 50–950 ramp

primary
#4D3281
secondary
#93AC62
accent
#D454A8
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B070F
muted
#7C7A7F

Preview Lab

Preview with #4D3281

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

Preview Lab → · Contrast checker → · Palette generator →

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