#4D2697#4D2697

#4D2697 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.3% C 0.171 H 292.4°. Best body text is #FFFFFF at 10.30:1 contrast (WCAG AA passes).

Color values

HEX#4D2697
RGBrgb(77, 38, 151)
HSLhsl(261, 60%, 37%)
HSVhsv(261, 75%, 59%)
CMYKcmyk(49%, 74.8%, 0%, 40.8%)
CIE-LABlab(27.29, 44.11, -55.19)
CIE-LCHlch(27.29, 70.65, 308.64°)
OKLaboklab(39.29% 0.0654 -0.1583)
OKLCHoklch(39.29% 0.171 292.4)
XYZxyz(9.3380, 5.1980, 29.7835)
Luminance0.0520 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2697 #709726
analogous
#263897 #4D2697 #862697
triadic
#4D2697 #974D26 #26974D
tetradic
#4D2697 #972638 #709726 #269786
square
#4D2697 #972638 #709726 #269786
split-complementary
#4D2697 #978626 #389726
monochromatic
#1B0D35 #341A66 #4D2697 #6632C8 #8960D7

Accessibility & contrast

On white

10.30
#4D2697 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#4D2697 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2697
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2697#FFFFFF#000000##FFFFFF
##4D26971.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429A
Deuteranopia (green-blind)
#003E95
Tritanopia (blue-blind)
#36445C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4d2697;
/* rgb */ color: rgb(77, 38, 151);
/* oklch */ color: oklch(39.3% 0.171 292.4);
Tailwind
colors: {
  custom: {
    50: '#8664b7',
    500: '#4d2697',
    950: '#000000',
  },
}
SCSS
$custom: #4d2697;
$custom-light: #8664b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2697",
  "rgb": {
    "r": 77,
    "g": 38,
    "b": 151
  },
  "hsl": {
    "h": 260.708,
    "s": 59.788,
    "l": 37.059
  },
  "oklch": {
    "l": 0.39291,
    "c": 0.17127,
    "h": 292.4
  },
  "luminance": 0.05198
}

Semantic roles & 50–950 ramp

primary
#4D2697
secondary
#9BBC5C
accent
#E345AC
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4D2697

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

Preview Lab → · Contrast checker → · Palette generator →

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