#4D2F85#4D2F85

#4D2F85 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.0% C 0.137 H 295.4°. Best body text is #FFFFFF at 10.19:1 contrast (WCAG AA passes).

Color values

HEX#4D2F85
RGBrgb(77, 47, 133)
HSLhsl(261, 48%, 35%)
HSVhsv(261, 65%, 52%)
CMYKcmyk(42.1%, 64.7%, 0%, 47.8%)
CIE-LABlab(27.58, 34.05, -43.57)
CIE-LCHlch(27.58, 55.30, 308.01°)
OKLaboklab(39.03% 0.0589 -0.1242)
OKLCHoklch(39.03% 0.137 295.4)
XYZxyz(8.3096, 5.3041, 22.7717)
Luminance0.0530 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2F85 #67852F
analogous
#2F3C85 #4D2F85 #782F85
triadic
#4D2F85 #854D2F #2F854D
tetradic
#4D2F85 #852F3C #67852F #2F8578
square
#4D2F85 #852F3C #67852F #2F8578
split-complementary
#4D2F85 #85782F #3C852F
monochromatic
#190F2B #331F58 #4D2F85 #673FB2 #8866C9

Accessibility & contrast

On white

10.19
#4D2F85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#4D2F85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2F85
10.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2F85#FFFFFF#000000##FFFFFF
##4D2F851.0010.192.0610.19
#FFFFFF10.191.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004288
Deuteranopia (green-blind)
#004083
Tritanopia (blue-blind)
#3F4255
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4d2f85;
/* rgb */ color: rgb(77, 47, 133);
/* oklch */ color: oklch(39.0% 0.137 295.4);
Tailwind
colors: {
  custom: {
    50: '#8369a9',
    500: '#4d2f85',
    950: '#000000',
  },
}
SCSS
$custom: #4d2f85;
$custom-light: #8369a9;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2f85",
  "rgb": {
    "r": 77,
    "g": 47,
    "b": 133
  },
  "hsl": {
    "h": 260.93,
    "s": 47.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.39035,
    "c": 0.13746,
    "h": 295.4
  },
  "luminance": 0.05304
}

Semantic roles & 50–950 ramp

primary
#4D2F85
secondary
#94B060
accent
#D750A8
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4D2F85

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

Preview Lab → · Contrast checker → · Palette generator →

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