#4D22A1#4D22A1

#4D22A1 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.8% C 0.187 H 290.6°. Best body text is #FFFFFF at 10.20:1 contrast (WCAG AA passes).

Color values

HEX#4D22A1
RGBrgb(77, 34, 161)
HSLhsl(260, 65%, 38%)
HSVhsv(260, 79%, 63%)
CMYKcmyk(52.2%, 78.9%, 0%, 36.9%)
CIE-LABlab(27.56, 48.79, -60.86)
CIE-LCHlch(27.56, 78.00, 308.72°)
OKLaboklab(39.76% 0.0659 -0.1749)
OKLCHoklch(39.76% 0.187 290.6)
XYZxyz(10.0638, 5.2946, 34.2030)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D22A1 #76A122
analogous
#2236A1 #4D22A1 #8C22A1
triadic
#4D22A1 #A14D22 #22A14D
tetradic
#4D22A1 #A12236 #76A122 #22A18C
square
#4D22A1 #A12236 #76A122 #22A18C
split-complementary
#4D22A1 #A18C22 #36A122
monochromatic
#1D0D3C #35176E #4D22A1 #652DD3 #8A60DD

Accessibility & contrast

On white

10.20
#4D22A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#4D22A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D22A1
10.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D22A1#FFFFFF#000000##FFFFFF
##4D22A11.0010.202.0610.20
#FFFFFF10.201.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A5
Deuteranopia (green-blind)
#003E9F
Tritanopia (blue-blind)
#2F4661
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4d22a1;
/* rgb */ color: rgb(77, 34, 161);
/* oklch */ color: oklch(39.8% 0.187 290.6);
Tailwind
colors: {
  custom: {
    50: '#8863be',
    500: '#4d22a1',
    950: '#000000',
  },
}
SCSS
$custom: #4d22a1;
$custom-light: #8863be;
$custom-dark: #000000;
JSON
{
  "hex": "#4d22a1",
  "rgb": {
    "r": 77,
    "g": 34,
    "b": 161
  },
  "hsl": {
    "h": 260.315,
    "s": 65.128,
    "l": 38.235
  },
  "oklch": {
    "l": 0.39763,
    "c": 0.18688,
    "h": 290.6
  },
  "luminance": 0.05295
}

Semantic roles & 50–950 ramp

primary
#4D22A1
secondary
#A0C25D
accent
#E840AF
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4D22A1

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

Preview Lab → · Contrast checker → · Palette generator →

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