#4D22A0#4D22A0

#4D22A0 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.7% C 0.186 H 290.9°. Best body text is #FFFFFF at 10.23:1 contrast (WCAG AA passes).

Color values

HEX#4D22A0
RGBrgb(77, 34, 160)
HSLhsl(260, 65%, 38%)
HSVhsv(260, 79%, 63%)
CMYKcmyk(51.9%, 78.8%, 0%, 37.3%)
CIE-LABlab(27.46, 48.52, -60.41)
CIE-LCHlch(27.46, 77.48, 308.77°)
OKLaboklab(39.67% 0.0662 -0.1736)
OKLCHoklch(39.67% 0.186 290.9)
XYZxyz(9.9759, 5.2595, 33.7404)
Luminance0.0526 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D22A0 #75A022
analogous
#2236A0 #4D22A0 #8C22A0
triadic
#4D22A0 #A04D22 #22A04D
tetradic
#4D22A0 #A02236 #75A022 #22A08C
square
#4D22A0 #A02236 #75A022 #22A08C
split-complementary
#4D22A0 #A08C22 #36A022
monochromatic
#1C0D3B #35176E #4D22A0 #652DD2 #8A5FDD

Accessibility & contrast

On white

10.23
#4D22A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#4D22A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D22A0
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D22A0#FFFFFF#000000##FFFFFF
##4D22A01.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A4
Deuteranopia (green-blind)
#003E9E
Tritanopia (blue-blind)
#304660
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4d22a0;
/* rgb */ color: rgb(77, 34, 160);
/* oklch */ color: oklch(39.7% 0.186 290.9);
Tailwind
colors: {
  custom: {
    50: '#8863bd',
    500: '#4d22a0',
    950: '#000000',
  },
}
SCSS
$custom: #4d22a0;
$custom-light: #8863bd;
$custom-dark: #000000;
JSON
{
  "hex": "#4d22a0",
  "rgb": {
    "r": 77,
    "g": 34,
    "b": 160
  },
  "hsl": {
    "h": 260.476,
    "s": 64.948,
    "l": 38.039
  },
  "oklch": {
    "l": 0.39667,
    "c": 0.18576,
    "h": 290.9
  },
  "luminance": 0.0526
}

Semantic roles & 50–950 ramp

primary
#4D22A0
secondary
#9FC25C
accent
#E840AF
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4D22A0

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

Preview Lab → · Contrast checker → · Palette generator →

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