#4D22B1#4D22B1

#4D22B1 is a dark, highly saturated violet. Relative luminance 0.059; OKLCH L 41.3% C 0.205 H 287.3°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#4D22B1
RGBrgb(77, 34, 177)
HSLhsl(258, 68%, 41%)
HSVhsv(258, 81%, 69%)
CMYKcmyk(56.5%, 80.8%, 0%, 30.6%)
CIE-LABlab(29.15, 53.17, -67.88)
CIE-LCHlch(29.15, 86.23, 308.07°)
OKLaboklab(41.35% 0.0607 -0.1954)
OKLCHoklch(41.35% 0.205 287.3)
XYZxyz(11.5660, 5.8955, 42.1149)
Luminance0.0590 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D22B1 #86B122
analogous
#223FB1 #4D22B1 #9522B1
triadic
#4D22B1 #B14D22 #22B14D
tetradic
#4D22B1 #B1223F #86B122 #22B195
square
#4D22B1 #B1223F #86B122 #22B195
split-complementary
#4D22B1 #B19522 #3FB122
monochromatic
#200E4A #37187E #4D22B1 #6838D9 #8F6BE3

Accessibility & contrast

On white

9.64
#4D22B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#4D22B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D22B1
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D22B1#FFFFFF#000000##FFFFFF
##4D22B11.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B5
Deuteranopia (green-blind)
#0041AE
Tritanopia (blue-blind)
#1F4D6A
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4d22b1;
/* rgb */ color: rgb(77, 34, 177);
/* oklch */ color: oklch(41.3% 0.205 287.3);
Tailwind
colors: {
  custom: {
    50: '#8b64ca',
    500: '#4d22b1',
    950: '#000000',
  },
}
SCSS
$custom: #4d22b1;
$custom-light: #8b64ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4d22b1",
  "rgb": {
    "r": 77,
    "g": 34,
    "b": 177
  },
  "hsl": {
    "h": 258.042,
    "s": 67.773,
    "l": 41.373
  },
  "oklch": {
    "l": 0.41345,
    "c": 0.20465,
    "h": 287.3
  },
  "luminance": 0.05896
}

Semantic roles & 50–950 ramp

primary
#4D22B1
secondary
#ABC966
accent
#EB3DB6
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4D22B1

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

Preview Lab → · Contrast checker → · Palette generator →

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