#4D2F81#4D2F81

#4D2F81 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 38.7% C 0.132 H 296.6°. Best body text is #FFFFFF at 10.30:1 contrast (WCAG AA passes).

Color values

HEX#4D2F81
RGBrgb(77, 47, 129)
HSLhsl(262, 47%, 35%)
HSVhsv(262, 64%, 51%)
CMYKcmyk(40.3%, 63.6%, 0%, 49.4%)
CIE-LABlab(27.28, 32.90, -41.55)
CIE-LCHlch(27.28, 53.00, 308.37°)
OKLaboklab(38.72% 0.0592 -0.1183)
OKLCHoklch(38.72% 0.132 296.6)
XYZxyz(8.0385, 5.1956, 21.3440)
Luminance0.0520 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2F81 #63812F
analogous
#2F3A81 #4D2F81 #762F81
triadic
#4D2F81 #814D2F #2F814D
tetradic
#4D2F81 #812F3A #63812F #2F8176
square
#4D2F81 #812F3A #63812F #2F8176
split-complementary
#4D2F81 #81762F #3A812F
monochromatic
#170E27 #321F54 #4D2F81 #683FAE #8864C6

Accessibility & contrast

On white

10.30
#4D2F81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#4D2F81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2F81
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2F81#FFFFFF#000000##FFFFFF
##4D2F811.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004184
Deuteranopia (green-blind)
#063F7F
Tritanopia (blue-blind)
#404153
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4d2f81;
/* rgb */ color: rgb(77, 47, 129);
/* oklch */ color: oklch(38.7% 0.132 296.6);
Tailwind
colors: {
  custom: {
    50: '#8369a6',
    500: '#4d2f81',
    950: '#000000',
  },
}
SCSS
$custom: #4d2f81;
$custom-light: #8369a6;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2f81",
  "rgb": {
    "r": 77,
    "g": 47,
    "b": 129
  },
  "hsl": {
    "h": 261.951,
    "s": 46.591,
    "l": 34.51
  },
  "oklch": {
    "l": 0.38723,
    "c": 0.13225,
    "h": 296.6
  },
  "luminance": 0.05196
}

Semantic roles & 50–950 ramp

primary
#4D2F81
secondary
#90AD5E
accent
#D652A6
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4D2F81

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

Preview Lab → · Contrast checker → · Palette generator →

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