#4D22B4#4D22B4

#4D22B4 is a dark, highly saturated violet. Relative luminance 0.060; OKLCH L 41.6% C 0.208 H 286.7°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#4D22B4
RGBrgb(77, 34, 180)
HSLhsl(258, 68%, 42%)
HSVhsv(258, 81%, 71%)
CMYKcmyk(57.2%, 81.1%, 0%, 29.4%)
CIE-LABlab(29.45, 53.99, -69.17)
CIE-LCHlch(29.45, 87.74, 307.98°)
OKLaboklab(41.65% 0.0597 -0.1992)
OKLCHoklch(41.65% 0.208 286.7)
XYZxyz(11.8683, 6.0164, 43.7071)
Luminance0.0602 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D22B4 #89B422
analogous
#2240B4 #4D22B4 #9622B4
triadic
#4D22B4 #B44D22 #22B44D
tetradic
#4D22B4 #B42240 #89B422 #22B496
square
#4D22B4 #B42240 #89B422 #22B496
split-complementary
#4D22B4 #B49622 #40B422
monochromatic
#210F4D #371881 #4D22B4 #693ADA #906DE3

Accessibility & contrast

On white

9.53
#4D22B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#4D22B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D22B4
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D22B4#FFFFFF#000000##FFFFFF
##4D22B41.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B8
Deuteranopia (green-blind)
#0041B1
Tritanopia (blue-blind)
#1A4E6C
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4d22b4;
/* rgb */ color: rgb(77, 34, 180);
/* oklch */ color: oklch(41.6% 0.208 286.7);
Tailwind
colors: {
  custom: {
    50: '#8b64cc',
    500: '#4d22b4',
    950: '#000000',
  },
}
SCSS
$custom: #4d22b4;
$custom-light: #8b64cc;
$custom-dark: #000000;
JSON
{
  "hex": "#4d22b4",
  "rgb": {
    "r": 77,
    "g": 34,
    "b": 180
  },
  "hsl": {
    "h": 257.671,
    "s": 68.224,
    "l": 41.961
  },
  "oklch": {
    "l": 0.41648,
    "c": 0.20794,
    "h": 286.7
  },
  "luminance": 0.06017
}

Semantic roles & 50–950 ramp

primary
#4D22B4
secondary
#ADCA68
accent
#EB3DB8
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0614
muted
#7E7A82

Preview Lab

Preview with #4D22B4

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

Preview Lab → · Contrast checker → · Palette generator →

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