#4D22A6#4D22A6

#4D22A6 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.3% C 0.192 H 289.5°. Best body text is #FFFFFF at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#4D22A6
RGBrgb(77, 34, 166)
HSLhsl(260, 66%, 39%)
HSVhsv(260, 80%, 65%)
CMYKcmyk(53.6%, 79.5%, 0%, 34.9%)
CIE-LABlab(28.05, 50.16, -63.08)
CIE-LCHlch(28.05, 80.60, 308.49°)
OKLaboklab(40.25% 0.0643 -0.1814)
OKLCHoklch(40.25% 0.192 289.5)
XYZxyz(10.5135, 5.4745, 36.5717)
Luminance0.0548 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D22A6 #7BA622
analogous
#2239A6 #4D22A6 #8F22A6
triadic
#4D22A6 #A64D22 #22A64D
tetradic
#4D22A6 #A62239 #7BA622 #22A68F
square
#4D22A6 #A62239 #7BA622 #22A68F
split-complementary
#4D22A6 #A68F22 #39A622
monochromatic
#1E0D40 #351873 #4D22A6 #6630D5 #8C63DF

Accessibility & contrast

On white

10.02
#4D22A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#4D22A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D22A6
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D22A6#FFFFFF#000000##FFFFFF
##4D22A61.0010.022.1010.02
#FFFFFF10.021.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AA
Deuteranopia (green-blind)
#003FA4
Tritanopia (blue-blind)
#2B4864
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4d22a6;
/* rgb */ color: rgb(77, 34, 166);
/* oklch */ color: oklch(40.3% 0.192 289.5);
Tailwind
colors: {
  custom: {
    50: '#8963c2',
    500: '#4d22a6',
    950: '#000000',
  },
}
SCSS
$custom: #4d22a6;
$custom-light: #8963c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4d22a6",
  "rgb": {
    "r": 77,
    "g": 34,
    "b": 166
  },
  "hsl": {
    "h": 259.545,
    "s": 66,
    "l": 39.216
  },
  "oklch": {
    "l": 0.4025,
    "c": 0.19247,
    "h": 289.5
  },
  "luminance": 0.05475
}

Semantic roles & 50–950 ramp

primary
#4D22A6
secondary
#A3C45F
accent
#E93FB2
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #4D22A6

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

Preview Lab → · Contrast checker → · Palette generator →

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