#4D1865#4D1865

#4D1865 is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.3% C 0.132 H 313.0°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).

Color values

HEX#4D1865
RGBrgb(77, 24, 101)
HSLhsl(281, 62%, 25%)
HSVhsv(281, 76%, 40%)
CMYKcmyk(23.8%, 76.2%, 0%, 60.4%)
CIE-LABlab(20.72, 37.86, -34.21)
CIE-LCHlch(20.72, 51.03, 317.90°)
OKLaboklab(33.33% 0.09 -0.0966)
OKLCHoklch(33.33% 0.132 313)
XYZxyz(5.7357, 3.1708, 12.6193)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1865 #306518
analogous
#271865 #4D1865 #651857
triadic
#4D1865 #654D18 #18654D
tetradic
#4D1865 #652718 #306518 #185765
square
#4D1865 #652718 #306518 #185765
split-complementary
#4D1865 #576518 #186527
monochromatic
#130619 #270C34 #4D1865 #732496 #9830C8

Accessibility & contrast

On white

12.85
#4D1865 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#4D1865 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1865
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1865#FFFFFF#000000##FFFFFF
##4D18651.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F67
Deuteranopia (green-blind)
#113363
Tritanopia (blue-blind)
#4A293D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4d1865;
/* rgb */ color: rgb(77, 24, 101);
/* oklch */ color: oklch(33.3% 0.132 313.0);
Tailwind
colors: {
  custom: {
    50: '#825a91',
    500: '#4d1865',
    950: '#000000',
  },
}
SCSS
$custom: #4d1865;
$custom-light: #825a91;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1865",
  "rgb": {
    "r": 77,
    "g": 24,
    "b": 101
  },
  "hsl": {
    "h": 281.299,
    "s": 61.6,
    "l": 24.51
  },
  "oklch": {
    "l": 0.33328,
    "c": 0.13203,
    "h": 313
  },
  "luminance": 0.03171
}

Semantic roles & 50–950 ramp

primary
#4D1865
secondary
#5B9B3E
accent
#E54375
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4D1865

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

Preview Lab → · Contrast checker → · Palette generator →

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