#4D197C#4D197C

#4D197C is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.4% C 0.155 H 302.8°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#4D197C
RGBrgb(77, 25, 124)
HSLhsl(272, 66%, 29%)
HSVhsv(272, 80%, 49%)
CMYKcmyk(37.9%, 79.8%, 0%, 51.4%)
CIE-LABlab(22.75, 43.00, -45.75)
CIE-LCHlch(22.75, 62.79, 313.22°)
OKLaboklab(35.36% 0.0842 -0.1305)
OKLCHoklch(35.36% 0.155 302.8)
XYZxyz(7.0454, 3.7283, 19.4133)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D197C #487C19
analogous
#1C197C #4D197C #7C197A
triadic
#4D197C #7C4D19 #197C4D
tetradic
#4D197C #7C1C19 #487C19 #197A7C
square
#4D197C #7C1C19 #487C19 #197A7C
split-complementary
#4D197C #7A7C19 #197C1C
monochromatic
#100519 #2D0F49 #4D197C #6D23AF #8C38D7

Accessibility & contrast

On white

12.03
#4D197C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#4D197C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D197C
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D197C#FFFFFF#000000##FFFFFF
##4D197C1.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357F
Deuteranopia (green-blind)
#00367A
Tritanopia (blue-blind)
#43334A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4d197c;
/* rgb */ color: rgb(77, 25, 124);
/* oklch */ color: oklch(35.4% 0.155 302.8);
Tailwind
colors: {
  custom: {
    50: '#845ca3',
    500: '#4d197c',
    950: '#000000',
  },
}
SCSS
$custom: #4d197c;
$custom-light: #845ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#4d197c",
  "rgb": {
    "r": 77,
    "g": 25,
    "b": 124
  },
  "hsl": {
    "h": 271.515,
    "s": 66.443,
    "l": 29.216
  },
  "oklch": {
    "l": 0.35356,
    "c": 0.15532,
    "h": 302.8
  },
  "luminance": 0.03728
}

Semantic roles & 50–950 ramp

primary
#4D197C
secondary
#76B040
accent
#E93E90
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4D197C

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

Preview Lab → · Contrast checker → · Palette generator →

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