#4D195E#4D195E

#4D195E is a dark, vivid purple. Relative luminance 0.031; OKLCH L 32.9% C 0.123 H 316.6°. Best body text is #FFFFFF at 12.99:1 contrast (WCAG AA passes).

Color values

HEX#4D195E
RGBrgb(77, 25, 94)
HSLhsl(285, 58%, 23%)
HSVhsv(285, 73%, 37%)
CMYKcmyk(18.1%, 73.4%, 0%, 63.1%)
CIE-LABlab(20.37, 35.80, -30.15)
CIE-LCHlch(20.37, 46.80, 319.89°)
OKLaboklab(32.92% 0.0896 -0.0847)
OKLCHoklch(32.92% 0.123 316.6)
XYZxyz(5.4283, 3.0814, 10.8963)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D195E #2A5E19
analogous
#2A195E #4D195E #5E194C
triadic
#4D195E #5E4D19 #195E4D
tetradic
#4D195E #5E2A19 #2A5E19 #194C5E
square
#4D195E #5E2A19 #2A5E19 #194C5E
split-complementary
#4D195E #4C5E19 #195E2A
monochromatic
#140618 #250C2E #4D195E #75268E #9C33BF

Accessibility & contrast

On white

12.99
#4D195E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#4D195E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D195E
12.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D195E#FFFFFF#000000##FFFFFF
##4D195E1.0012.991.6212.99
#FFFFFF12.991.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E60
Deuteranopia (green-blind)
#1A335C
Tritanopia (blue-blind)
#4C2639
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4d195e;
/* rgb */ color: rgb(77, 25, 94);
/* oklch */ color: oklch(32.9% 0.123 316.6);
Tailwind
colors: {
  custom: {
    50: '#815b8c',
    500: '#4d195e',
    950: '#000000',
  },
}
SCSS
$custom: #4d195e;
$custom-light: #815b8c;
$custom-dark: #000000;
JSON
{
  "hex": "#4d195e",
  "rgb": {
    "r": 77,
    "g": 25,
    "b": 94
  },
  "hsl": {
    "h": 285.217,
    "s": 57.983,
    "l": 23.333
  },
  "oklch": {
    "l": 0.32916,
    "c": 0.1233,
    "h": 316.6
  },
  "luminance": 0.03081
}

Semantic roles & 50–950 ramp

primary
#4D195E
secondary
#54943F
accent
#E1476D
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4D195E

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

Preview Lab → · Contrast checker → · Palette generator →

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