#4D2691#4D2691

#4D2691 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.7% C 0.164 H 294.0°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#4D2691
RGBrgb(77, 38, 145)
HSLhsl(262, 58%, 36%)
HSVhsv(262, 74%, 57%)
CMYKcmyk(46.9%, 73.8%, 0%, 43.1%)
CIE-LABlab(26.76, 42.43, -52.37)
CIE-LCHlch(26.76, 67.40, 309.02°)
OKLaboklab(38.75% 0.0668 -0.15)
OKLCHoklch(38.75% 0.164 294)
XYZxyz(8.8631, 5.0081, 27.2822)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2691 #6A9126
analogous
#263491 #4D2691 #822691
triadic
#4D2691 #914D26 #26914D
tetradic
#4D2691 #912634 #6A9126 #269182
square
#4D2691 #912634 #6A9126 #269182
split-complementary
#4D2691 #918226 #349126
monochromatic
#190D30 #331961 #4D2691 #6733C1 #885DD5

Accessibility & contrast

On white

10.49
#4D2691 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#4D2691 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2691
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2691#FFFFFF#000000##FFFFFF
##4D26911.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004094
Deuteranopia (green-blind)
#003D8F
Tritanopia (blue-blind)
#394259
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4d2691;
/* rgb */ color: rgb(77, 38, 145);
/* oklch */ color: oklch(38.7% 0.164 294.0);
Tailwind
colors: {
  custom: {
    50: '#8664b2',
    500: '#4d2691',
    950: '#000000',
  },
}
SCSS
$custom: #4d2691;
$custom-light: #8664b2;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2691",
  "rgb": {
    "r": 77,
    "g": 38,
    "b": 145
  },
  "hsl": {
    "h": 261.869,
    "s": 58.47,
    "l": 35.882
  },
  "oklch": {
    "l": 0.38749,
    "c": 0.16422,
    "h": 294
  },
  "luminance": 0.05008
}

Semantic roles & 50–950 ramp

primary
#4D2691
secondary
#96BA59
accent
#E246A9
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4D2691

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

Preview Lab → · Contrast checker → · Palette generator →

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