#4D22A5#4D22A5

#4D22A5 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.2% C 0.191 H 289.7°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#4D22A5
RGBrgb(77, 34, 165)
HSLhsl(260, 66%, 39%)
HSVhsv(260, 79%, 65%)
CMYKcmyk(53.3%, 79.4%, 0%, 35.3%)
CIE-LABlab(27.95, 49.89, -62.64)
CIE-LCHlch(27.95, 80.08, 308.53°)
OKLaboklab(40.15% 0.0646 -0.1801)
OKLCHoklch(40.15% 0.191 289.7)
XYZxyz(10.4222, 5.4380, 36.0905)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D22A5 #7AA522
analogous
#2238A5 #4D22A5 #8F22A5
triadic
#4D22A5 #A54D22 #22A54D
tetradic
#4D22A5 #A52238 #7AA522 #22A58F
square
#4D22A5 #A52238 #7AA522 #22A58F
split-complementary
#4D22A5 #A58F22 #38A522
monochromatic
#1E0D40 #351872 #4D22A5 #6630D4 #8B63DF

Accessibility & contrast

On white

10.06
#4D22A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#4D22A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D22A5
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D22A5#FFFFFF#000000##FFFFFF
##4D22A51.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A9
Deuteranopia (green-blind)
#003FA3
Tritanopia (blue-blind)
#2C4863
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4d22a5;
/* rgb */ color: rgb(77, 34, 165);
/* oklch */ color: oklch(40.2% 0.191 289.7);
Tailwind
colors: {
  custom: {
    50: '#8963c1',
    500: '#4d22a5',
    950: '#000000',
  },
}
SCSS
$custom: #4d22a5;
$custom-light: #8963c1;
$custom-dark: #000000;
JSON
{
  "hex": "#4d22a5",
  "rgb": {
    "r": 77,
    "g": 34,
    "b": 165
  },
  "hsl": {
    "h": 259.695,
    "s": 65.829,
    "l": 39.02
  },
  "oklch": {
    "l": 0.40152,
    "c": 0.19136,
    "h": 289.7
  },
  "luminance": 0.05438
}

Semantic roles & 50–950 ramp

primary
#4D22A5
secondary
#A3C45F
accent
#E93FB1
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #4D22A5

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

Preview Lab → · Contrast checker → · Palette generator →

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