#4D1262#4D1262

#4D1262 is a dark, vivid purple. Relative luminance 0.029; OKLCH L 32.5% C 0.136 H 315.2°. Best body text is #FFFFFF at 13.30:1 contrast (WCAG AA passes).

Color values

HEX#4D1262
RGBrgb(77, 18, 98)
HSLhsl(284, 69%, 23%)
HSVhsv(284, 82%, 38%)
CMYKcmyk(21.4%, 81.6%, 0%, 61.6%)
CIE-LABlab(19.61, 39.69, -34.02)
CIE-LCHlch(19.61, 52.28, 319.40°)
OKLaboklab(32.47% 0.0968 -0.096)
OKLCHoklch(32.47% 0.136 315.2)
XYZxyz(5.4811, 2.8924, 11.8225)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1262 #276212
analogous
#251262 #4D1262 #62124F
triadic
#4D1262 #624D12 #12624D
tetradic
#4D1262 #622512 #276212 #124F62
square
#4D1262 #622512 #276212 #124F62
split-complementary
#4D1262 #4F6212 #126225
monochromatic
#14051A #24092E #4D1262 #761B96 #9E25C9

Accessibility & contrast

On white

13.30
#4D1262 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#4D1262 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1262
13.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1262#FFFFFF#000000##FFFFFF
##4D12621.0013.301.5813.30
#FFFFFF13.301.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C64
Deuteranopia (green-blind)
#0F3160
Tritanopia (blue-blind)
#4B243A
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #4d1262;
/* rgb */ color: rgb(77, 18, 98);
/* oklch */ color: oklch(32.5% 0.136 315.2);
Tailwind
colors: {
  custom: {
    50: '#82588f',
    500: '#4d1262',
    950: '#000000',
  },
}
SCSS
$custom: #4d1262;
$custom-light: #82588f;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1262",
  "rgb": {
    "r": 77,
    "g": 18,
    "b": 98
  },
  "hsl": {
    "h": 284.25,
    "s": 68.966,
    "l": 22.745
  },
  "oklch": {
    "l": 0.32471,
    "c": 0.1363,
    "h": 315.2
  },
  "luminance": 0.02892
}

Semantic roles & 50–950 ramp

primary
#4D1262
secondary
#509A36
accent
#EC3C6A
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4D1262

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

Preview Lab → · Contrast checker → · Palette generator →

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