#4D3271#4D3271

#4D3271 is a dark, moderate violet. Relative luminance 0.051; OKLCH L 38.1% C 0.106 H 301.3°. Best body text is #FFFFFF at 10.45:1 contrast (WCAG AA passes).

Color values

HEX#4D3271
RGBrgb(77, 50, 113)
HSLhsl(266, 39%, 32%)
HSVhsv(266, 56%, 44%)
CMYKcmyk(31.9%, 55.8%, 0%, 55.7%)
CIE-LABlab(26.88, 26.55, -32.08)
CIE-LCHlch(26.88, 41.64, 309.61°)
OKLaboklab(38.07% 0.0551 -0.0905)
OKLCHoklch(38.07% 0.106 301.3)
XYZxyz(7.1811, 5.0512, 16.2162)
Luminance0.0505 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D3271 #567132
analogous
#323771 #4D3271 #6D3271
triadic
#4D3271 #714D32 #32714D
tetradic
#4D3271 #713237 #567132 #32716D
square
#4D3271 #713237 #567132 #32716D
split-complementary
#4D3271 #716D32 #377132
monochromatic
#130C1C #301F47 #4D3271 #6A459B #8863BA

Accessibility & contrast

On white

10.45
#4D3271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#4D3271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D3271
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D3271#FFFFFF#000000##FFFFFF
##4D32711.0010.452.0110.45
#FFFFFF10.451.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B3F73
Deuteranopia (green-blind)
#233F6F
Tritanopia (blue-blind)
#463E4C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4d3271;
/* rgb */ color: rgb(77, 50, 113);
/* oklch */ color: oklch(38.1% 0.106 301.3);
Tailwind
colors: {
  custom: {
    50: '#816b9a',
    500: '#4d3271',
    950: '#000000',
  },
}
SCSS
$custom: #4d3271;
$custom-light: #816b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#4d3271",
  "rgb": {
    "r": 77,
    "g": 50,
    "b": 113
  },
  "hsl": {
    "h": 265.714,
    "s": 38.65,
    "l": 31.961
  },
  "oklch": {
    "l": 0.38073,
    "c": 0.10592,
    "h": 301.3
  },
  "luminance": 0.05051
}

Semantic roles & 50–950 ramp

primary
#4D3271
secondary
#84A25D
accent
#CF599C
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0A060E
muted
#7C7A7E

Preview Lab

Preview with #4D3271

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

Preview Lab → · Contrast checker → · Palette generator →

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