#4D2D81#4D2D81

#4D2D81 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.4% C 0.135 H 297.1°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#4D2D81
RGBrgb(77, 45, 129)
HSLhsl(263, 48%, 34%)
HSVhsv(263, 65%, 51%)
CMYKcmyk(40.3%, 65.1%, 0%, 49.4%)
CIE-LABlab(26.85, 34.08, -42.26)
CIE-LCHlch(26.85, 54.29, 308.88°)
OKLaboklab(38.4% 0.0616 -0.1204)
OKLCHoklch(38.4% 0.135 297.1)
XYZxyz(7.9604, 5.0394, 21.3179)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2D81 #61812D
analogous
#2D3781 #4D2D81 #772D81
triadic
#4D2D81 #814D2D #2D814D
tetradic
#4D2D81 #812D37 #61812D #2D8177
square
#4D2D81 #812D37 #61812D #2D8177
split-complementary
#4D2D81 #81772D #37812D
monochromatic
#170D26 #321D54 #4D2D81 #683DAE #8861C8

Accessibility & contrast

On white

10.46
#4D2D81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D2D81
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2D81#FFFFFF#000000##FFFFFF
##4D2D811.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004084
Deuteranopia (green-blind)
#003E7F
Tritanopia (blue-blind)
#404052
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4d2d81;
/* rgb */ color: rgb(77, 45, 129);
/* oklch */ color: oklch(38.4% 0.135 297.1);
Tailwind
colors: {
  custom: {
    50: '#8368a6',
    500: '#4d2d81',
    950: '#000000',
  },
}
SCSS
$custom: #4d2d81;
$custom-light: #8368a6;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2d81",
  "rgb": {
    "r": 77,
    "g": 45,
    "b": 129
  },
  "hsl": {
    "h": 262.857,
    "s": 48.276,
    "l": 34.118
  },
  "oklch": {
    "l": 0.38404,
    "c": 0.13522,
    "h": 297.1
  },
  "luminance": 0.0504
}

Semantic roles & 50–950 ramp

primary
#4D2D81
secondary
#8FAE5C
accent
#D850A4
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4D2D81

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

Preview Lab → · Contrast checker → · Palette generator →

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