#4D2097#4D2097

#4D2097 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.6% C 0.178 H 293.4°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#4D2097
RGBrgb(77, 32, 151)
HSLhsl(263, 65%, 36%)
HSVhsv(263, 79%, 59%)
CMYKcmyk(49%, 78.8%, 0%, 40.8%)
CIE-LABlab(26.29, 46.97, -56.83)
CIE-LCHlch(26.29, 73.73, 309.58°)
OKLaboklab(38.59% 0.0704 -0.1631)
OKLCHoklch(38.59% 0.178 293.4)
XYZxyz(9.1614, 4.8449, 29.7246)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2097 #6A9720
analogous
#202E97 #4D2097 #882097
triadic
#4D2097 #974D20 #20974D
tetradic
#4D2097 #97202E #6A9720 #209788
square
#4D2097 #97202E #6A9720 #209788
split-complementary
#4D2097 #978820 #2E9720
monochromatic
#190B32 #331564 #4D2097 #672BC9 #8856DB

Accessibility & contrast

On white

10.67
#4D2097 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#4D2097 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2097
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2097#FFFFFF#000000##FFFFFF
##4D20971.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409A
Deuteranopia (green-blind)
#003C95
Tritanopia (blue-blind)
#36415B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4d2097;
/* rgb */ color: rgb(77, 32, 151);
/* oklch */ color: oklch(38.6% 0.178 293.4);
Tailwind
colors: {
  custom: {
    50: '#8761b7',
    500: '#4d2097',
    950: '#000000',
  },
}
SCSS
$custom: #4d2097;
$custom-light: #8761b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2097",
  "rgb": {
    "r": 77,
    "g": 32,
    "b": 151
  },
  "hsl": {
    "h": 262.689,
    "s": 65.027,
    "l": 35.882
  },
  "oklch": {
    "l": 0.38587,
    "c": 0.17764,
    "h": 293.4
  },
  "luminance": 0.04845
}

Semantic roles & 50–950 ramp

primary
#4D2097
secondary
#96BF54
accent
#E840A8
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4D2097

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

Preview Lab → · Contrast checker → · Palette generator →

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