#4D2A85#4D2A85

#4D2A85 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.3% C 0.145 H 296.6°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#4D2A85
RGBrgb(77, 42, 133)
HSLhsl(263, 52%, 34%)
HSVhsv(263, 68%, 52%)
CMYKcmyk(42.1%, 68.4%, 0%, 47.8%)
CIE-LABlab(26.53, 36.92, -45.29)
CIE-LCHlch(26.53, 58.43, 309.19°)
OKLaboklab(38.27% 0.0648 -0.1292)
OKLCHoklch(38.27% 0.145 296.6)
XYZxyz(8.1211, 4.9270, 22.7089)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2A85 #62852A
analogous
#2A3585 #4D2A85 #7B2A85
triadic
#4D2A85 #854D2A #2A854D
tetradic
#4D2A85 #852A35 #62852A #2A857B
square
#4D2A85 #852A35 #62852A #2A857B
split-complementary
#4D2A85 #857B2A #35852A
monochromatic
#170D28 #321B56 #4D2A85 #6839B4 #885DCC

Accessibility & contrast

On white

10.58
#4D2A85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#4D2A85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2A85
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2A85#FFFFFF#000000##FFFFFF
##4D2A851.0010.581.9910.58
#FFFFFF10.581.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F88
Deuteranopia (green-blind)
#003E83
Tritanopia (blue-blind)
#3F3F54
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4d2a85;
/* rgb */ color: rgb(77, 42, 133);
/* oklch */ color: oklch(38.3% 0.145 296.6);
Tailwind
colors: {
  custom: {
    50: '#8466a9',
    500: '#4d2a85',
    950: '#000000',
  },
}
SCSS
$custom: #4d2a85;
$custom-light: #8466a9;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2a85",
  "rgb": {
    "r": 77,
    "g": 42,
    "b": 133
  },
  "hsl": {
    "h": 263.077,
    "s": 52,
    "l": 34.314
  },
  "oklch": {
    "l": 0.3827,
    "c": 0.14456,
    "h": 296.6
  },
  "luminance": 0.04927
}

Semantic roles & 50–950 ramp

primary
#4D2A85
secondary
#90B259
accent
#DB4CA4
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4D2A85

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

Preview Lab → · Contrast checker → · Palette generator →

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