#4D2298#4D2298

#4D2298 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.9% C 0.177 H 292.8°. Best body text is #FFFFFF at 10.51:1 contrast (WCAG AA passes).

Color values

HEX#4D2298
RGBrgb(77, 34, 152)
HSLhsl(262, 63%, 36%)
HSVhsv(262, 78%, 60%)
CMYKcmyk(49.3%, 77.6%, 0%, 40.4%)
CIE-LABlab(26.70, 46.33, -56.77)
CIE-LCHlch(26.70, 73.27, 309.22°)
OKLaboklab(38.91% 0.0685 -0.1629)
OKLCHoklch(38.91% 0.177 292.8)
XYZxyz(9.2985, 4.9885, 30.1726)
Luminance0.0499 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2298 #6D9822
analogous
#223298 #4D2298 #882298
triadic
#4D2298 #984D22 #22984D
tetradic
#4D2298 #982232 #6D9822 #229888
square
#4D2298 #982232 #6D9822 #229888
split-complementary
#4D2298 #988822 #329822
monochromatic
#1A0C34 #341766 #4D2298 #662DCA #895ADA

Accessibility & contrast

On white

10.51
#4D2298 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D2298
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2298#FFFFFF#000000##FFFFFF
##4D22981.0010.512.0010.51
#FFFFFF10.511.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419B
Deuteranopia (green-blind)
#003D96
Tritanopia (blue-blind)
#35435C
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4d2298;
/* rgb */ color: rgb(77, 34, 152);
/* oklch */ color: oklch(38.9% 0.177 292.8);
Tailwind
colors: {
  custom: {
    50: '#8762b7',
    500: '#4d2298',
    950: '#000000',
  },
}
SCSS
$custom: #4d2298;
$custom-light: #8762b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2298",
  "rgb": {
    "r": 77,
    "g": 34,
    "b": 152
  },
  "hsl": {
    "h": 261.864,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.38905,
    "c": 0.17674,
    "h": 292.8
  },
  "luminance": 0.04989
}

Semantic roles & 50–950 ramp

primary
#4D2298
secondary
#99BE57
accent
#E641AA
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #4D2298

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

Preview Lab → · Contrast checker → · Palette generator →

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