#4D2F87#4D2F87

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

Color values

HEX#4D2F87
RGBrgb(77, 47, 135)
HSLhsl(260, 48%, 36%)
HSVhsv(260, 65%, 53%)
CMYKcmyk(43%, 65.2%, 0%, 47.1%)
CIE-LABlab(27.74, 34.63, -44.57)
CIE-LCHlch(27.74, 56.44, 307.85°)
OKLaboklab(39.19% 0.0587 -0.1272)
OKLCHoklch(39.19% 0.14 294.8)
XYZxyz(8.4491, 5.3599, 23.5064)
Luminance0.0536 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2F87 #69872F
analogous
#2F3D87 #4D2F87 #792F87
triadic
#4D2F87 #874D2F #2F874D
tetradic
#4D2F87 #872F3D #69872F #2F8779
square
#4D2F87 #872F3D #69872F #2F8779
split-complementary
#4D2F87 #87792F #3D872F
monochromatic
#190F2C #331F5A #4D2F87 #673FB4 #8866CA

Accessibility & contrast

On white

10.14
#4D2F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#4D2F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2F87
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2F87#FFFFFF#000000##FFFFFF
##4D2F871.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428A
Deuteranopia (green-blind)
#004085
Tritanopia (blue-blind)
#3E4356
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4d2f87;
/* rgb */ color: rgb(77, 47, 135);
/* oklch */ color: oklch(39.2% 0.140 294.8);
Tailwind
colors: {
  custom: {
    50: '#8469ab',
    500: '#4d2f87',
    950: '#000000',
  },
}
SCSS
$custom: #4d2f87;
$custom-light: #8469ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2f87",
  "rgb": {
    "r": 77,
    "g": 47,
    "b": 135
  },
  "hsl": {
    "h": 260.455,
    "s": 48.352,
    "l": 35.686
  },
  "oklch": {
    "l": 0.39193,
    "c": 0.14005,
    "h": 294.8
  },
  "luminance": 0.0536
}

Semantic roles & 50–950 ramp

primary
#4D2F87
secondary
#96B161
accent
#D850AA
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4D2F87

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

Preview Lab → · Contrast checker → · Palette generator →

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