#4D1258#4D1258

#4D1258 is a dark, vivid purple. Relative luminance 0.027; OKLCH L 31.7% C 0.127 H 320.8°. Best body text is #FFFFFF at 13.61:1 contrast (WCAG AA passes).

Color values

HEX#4D1258
RGBrgb(77, 18, 88)
HSLhsl(291, 66%, 21%)
HSVhsv(291, 80%, 35%)
CMYKcmyk(12.5%, 79.5%, 0%, 65.5%)
CIE-LABlab(18.87, 37.54, -28.56)
CIE-LCHlch(18.87, 47.17, 322.74°)
OKLaboklab(31.71% 0.0981 -0.08)
OKLCHoklch(31.71% 0.127 320.8)
XYZxyz(5.0381, 2.7152, 9.4893)
Luminance0.0272 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1258 #1D5812
analogous
#2A1258 #4D1258 #581240
triadic
#4D1258 #584D12 #12584D
tetradic
#4D1258 #582A12 #1D5812 #124058
square
#4D1258 #582A12 #1D5812 #124058
split-complementary
#4D1258 #405812 #12582A
monochromatic
#160519 #210825 #4D1258 #791C8B #A627BE

Accessibility & contrast

On white

13.61
#4D1258 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#4D1258 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1258
13.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1258#FFFFFF#000000##FFFFFF
##4D12581.0013.611.5413.61
#FFFFFF13.611.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5A
Deuteranopia (green-blind)
#1A3056
Tritanopia (blue-blind)
#4E2034
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #4d1258;
/* rgb */ color: rgb(77, 18, 88);
/* oklch */ color: oklch(31.7% 0.127 320.8);
Tailwind
colors: {
  custom: {
    50: '#825787',
    500: '#4d1258',
    950: '#000000',
  },
}
SCSS
$custom: #4d1258;
$custom-light: #825787;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1258",
  "rgb": {
    "r": 77,
    "g": 18,
    "b": 88
  },
  "hsl": {
    "h": 290.571,
    "s": 66.038,
    "l": 20.784
  },
  "oklch": {
    "l": 0.31709,
    "c": 0.12658,
    "h": 320.8
  },
  "luminance": 0.02715
}

Semantic roles & 50–950 ramp

primary
#4D1258
secondary
#449135
accent
#E93F5A
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B030B
muted
#7C787C

Preview Lab

Preview with #4D1258

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

Preview Lab → · Contrast checker → · Palette generator →

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