#4D1268#4D1268

#4D1268 is a dark, vivid purple. Relative luminance 0.030; OKLCH L 33.0% C 0.142 H 312.2°. Best body text is #FFFFFF at 13.11:1 contrast (WCAG AA passes).

Color values

HEX#4D1268
RGBrgb(77, 18, 104)
HSLhsl(281, 70%, 24%)
HSVhsv(281, 83%, 41%)
CMYKcmyk(26%, 82.7%, 0%, 59.2%)
CIE-LABlab(20.08, 41.03, -37.20)
CIE-LCHlch(20.08, 55.38, 317.81°)
OKLaboklab(32.96% 0.0956 -0.1053)
OKLCHoklch(32.96% 0.142 312.2)
XYZxyz(5.7751, 3.0100, 13.3708)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1268 #2D6812
analogous
#221268 #4D1268 #681258
triadic
#4D1268 #684D12 #12684D
tetradic
#4D1268 #682212 #2D6812 #125868
square
#4D1268 #682212 #2D6812 #125868
split-complementary
#4D1268 #586812 #126822
monochromatic
#13051A #260934 #4D1268 #741B9C #9A24D0

Accessibility & contrast

On white

13.11
#4D1268 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D1268
13.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1268#FFFFFF#000000##FFFFFF
##4D12681.0013.111.6013.11
#FFFFFF13.111.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6A
Deuteranopia (green-blind)
#033266
Tritanopia (blue-blind)
#4A273D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #4d1268;
/* rgb */ color: rgb(77, 18, 104);
/* oklch */ color: oklch(33.0% 0.142 312.2);
Tailwind
colors: {
  custom: {
    50: '#835894',
    500: '#4d1268',
    950: '#000000',
  },
}
SCSS
$custom: #4d1268;
$custom-light: #835894;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1268",
  "rgb": {
    "r": 77,
    "g": 18,
    "b": 104
  },
  "hsl": {
    "h": 281.163,
    "s": 70.492,
    "l": 23.922
  },
  "oklch": {
    "l": 0.32956,
    "c": 0.1422,
    "h": 312.2
  },
  "luminance": 0.0301
}

Semantic roles & 50–950 ramp

primary
#4D1268
secondary
#57A036
accent
#ED3B73
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4D1268

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

Preview Lab → · Contrast checker → · Palette generator →

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