#4D2295#4D2295

#4D2295 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.6% C 0.173 H 293.6°. Best body text is #FFFFFF at 10.61:1 contrast (WCAG AA passes).

Color values

HEX#4D2295
RGBrgb(77, 34, 149)
HSLhsl(262, 63%, 36%)
HSVhsv(262, 77%, 58%)
CMYKcmyk(48.3%, 77.2%, 0%, 41.6%)
CIE-LABlab(26.42, 45.51, -55.38)
CIE-LCHlch(26.42, 71.68, 309.41°)
OKLaboklab(38.62% 0.0694 -0.1588)
OKLCHoklch(38.62% 0.173 293.6)
XYZxyz(9.0559, 4.8915, 28.8949)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2295 #6A9522
analogous
#223095 #4D2295 #862295
triadic
#4D2295 #954D22 #22954D
tetradic
#4D2295 #952230 #6A9522 #229586
square
#4D2295 #952230 #6A9522 #229586
split-complementary
#4D2295 #958622 #309522
monochromatic
#190B31 #331763 #4D2295 #672DC7 #8858D9

Accessibility & contrast

On white

10.61
#4D2295 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#4D2295 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2295
10.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2295#FFFFFF#000000##FFFFFF
##4D22951.0010.611.9810.61
#FFFFFF10.611.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004098
Deuteranopia (green-blind)
#003C93
Tritanopia (blue-blind)
#37415A
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4d2295;
/* rgb */ color: rgb(77, 34, 149);
/* oklch */ color: oklch(38.6% 0.173 293.6);
Tailwind
colors: {
  custom: {
    50: '#8662b5',
    500: '#4d2295',
    950: '#000000',
  },
}
SCSS
$custom: #4d2295;
$custom-light: #8662b5;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2295",
  "rgb": {
    "r": 77,
    "g": 34,
    "b": 149
  },
  "hsl": {
    "h": 262.435,
    "s": 62.842,
    "l": 35.882
  },
  "oklch": {
    "l": 0.38624,
    "c": 0.17333,
    "h": 293.6
  },
  "luminance": 0.04892
}

Semantic roles & 50–950 ramp

primary
#4D2295
secondary
#96BD56
accent
#E642A9
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #4D2295

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

Preview Lab → · Contrast checker → · Palette generator →

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