#4D1267#4D1267

#4D1267 is a dark, vivid purple. Relative luminance 0.030; OKLCH L 32.9% C 0.141 H 312.7°. Best body text is #FFFFFF at 13.14:1 contrast (WCAG AA passes).

Color values

HEX#4D1267
RGBrgb(77, 18, 103)
HSLhsl(282, 70%, 24%)
HSVhsv(282, 83%, 40%)
CMYKcmyk(25.2%, 82.5%, 0%, 59.6%)
CIE-LABlab(20.00, 40.81, -36.67)
CIE-LCHlch(20.00, 54.86, 318.05°)
OKLaboklab(32.87% 0.0958 -0.1038)
OKLCHoklch(32.87% 0.141 312.7)
XYZxyz(5.7246, 2.9898, 13.1049)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1267 #2C6712
analogous
#221267 #4D1267 #671256
triadic
#4D1267 #674D12 #12674D
tetradic
#4D1267 #672212 #2C6712 #125667
square
#4D1267 #672212 #2C6712 #125667
split-complementary
#4D1267 #566712 #126722
monochromatic
#13051A #260933 #4D1267 #741B9B #9B24CF

Accessibility & contrast

On white

13.14
#4D1267 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#4D1267 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1267
13.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1267#FFFFFF#000000##FFFFFF
##4D12671.0013.141.6013.14
#FFFFFF13.141.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D69
Deuteranopia (green-blind)
#053165
Tritanopia (blue-blind)
#4A263C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #4d1267;
/* rgb */ color: rgb(77, 18, 103);
/* oklch */ color: oklch(32.9% 0.141 312.7);
Tailwind
colors: {
  custom: {
    50: '#825893',
    500: '#4d1267',
    950: '#000000',
  },
}
SCSS
$custom: #4d1267;
$custom-light: #825893;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1267",
  "rgb": {
    "r": 77,
    "g": 18,
    "b": 103
  },
  "hsl": {
    "h": 281.647,
    "s": 70.248,
    "l": 23.725
  },
  "oklch": {
    "l": 0.32874,
    "c": 0.14122,
    "h": 312.7
  },
  "luminance": 0.0299
}

Semantic roles & 50–950 ramp

primary
#4D1267
secondary
#569F36
accent
#ED3B71
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4D1267

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

Preview Lab → · Contrast checker → · Palette generator →

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