#4D197F#4D197F

#4D197F is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.6% C 0.159 H 301.7°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#4D197F
RGBrgb(77, 25, 127)
HSLhsl(271, 67%, 30%)
HSVhsv(271, 80%, 50%)
CMYKcmyk(39.4%, 80.3%, 0%, 50.2%)
CIE-LABlab(23.02, 43.76, -47.22)
CIE-LCHlch(23.02, 64.38, 312.82°)
OKLaboklab(35.62% 0.0834 -0.1348)
OKLCHoklch(35.62% 0.159 301.7)
XYZxyz(7.2380, 3.8053, 20.4277)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D197F #4B7F19
analogous
#1A197F #4D197F #7F197E
triadic
#4D197F #7F4D19 #197F4D
tetradic
#4D197F #7F1A19 #4B7F19 #197E7F
square
#4D197F #7F1A19 #4B7F19 #197E7F
split-complementary
#4D197F #7E7F19 #197F1A
monochromatic
#10051A #2E0F4C #4D197F #6C23B2 #8B3AD8

Accessibility & contrast

On white

11.93
#4D197F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#4D197F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D197F
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D197F#FFFFFF#000000##FFFFFF
##4D197F1.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003682
Deuteranopia (green-blind)
#00367D
Tritanopia (blue-blind)
#42344C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4d197f;
/* rgb */ color: rgb(77, 25, 127);
/* oklch */ color: oklch(35.6% 0.159 301.7);
Tailwind
colors: {
  custom: {
    50: '#845ca5',
    500: '#4d197f',
    950: '#000000',
  },
}
SCSS
$custom: #4d197f;
$custom-light: #845ca5;
$custom-dark: #000000;
JSON
{
  "hex": "#4d197f",
  "rgb": {
    "r": 77,
    "g": 25,
    "b": 127
  },
  "hsl": {
    "h": 270.588,
    "s": 67.105,
    "l": 29.804
  },
  "oklch": {
    "l": 0.35624,
    "c": 0.15853,
    "h": 301.7
  },
  "luminance": 0.03805
}

Semantic roles & 50–950 ramp

primary
#4D197F
secondary
#79B341
accent
#EA3E92
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4D197F

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

Preview Lab → · Contrast checker → · Palette generator →

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