#4D22E3#4D22E3

#4D22E3 is a mid, highly saturated violet. Relative luminance 0.083; OKLCH L 46.6% C 0.258 H 279.7°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#4D22E3
RGBrgb(77, 34, 227)
HSLhsl(253, 78%, 51%)
HSVhsv(253, 85%, 89%)
CMYKcmyk(66.1%, 85%, 0%, 11%)
CIE-LABlab(34.53, 66.60, -88.19)
CIE-LCHlch(34.53, 110.51, 307.06°)
OKLaboklab(46.62% 0.0436 -0.2545)
OKLCHoklch(46.62% 0.258 279.7)
XYZxyz(17.4933, 8.2664, 73.3319)
Luminance0.0827 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D22E3 #B8E322
analogous
#2257E3 #4D22E3 #AD22E3
triadic
#4D22E3 #E34D22 #22E34D
tetradic
#4D22E3 #E32257 #B8E322 #22E3AD
square
#4D22E3 #E32257 #B8E322 #22E3AD
split-complementary
#4D22E3 #E3AD22 #57E322
monochromatic
#28107B #3916B1 #4D22E3 #7958EA #A48FF1

Accessibility & contrast

On white

7.91
#4D22E3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#4D22E3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D22E3
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D22E3#FFFFFF#000000##FFFFFF
##4D22E31.007.912.657.91
#FFFFFF7.911.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058E8
Deuteranopia (green-blind)
#004AE0
Tritanopia (blue-blind)
#006288
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #4d22e3;
/* rgb */ color: rgb(77, 34, 227);
/* oklch */ color: oklch(46.6% 0.258 279.7);
Tailwind
colors: {
  custom: {
    50: '#9467ed',
    500: '#4d22e3',
    950: '#000000',
  },
}
SCSS
$custom: #4d22e3;
$custom-light: #9467ed;
$custom-dark: #000000;
JSON
{
  "hex": "#4d22e3",
  "rgb": {
    "r": 77,
    "g": 34,
    "b": 227
  },
  "hsl": {
    "h": 253.368,
    "s": 77.51,
    "l": 51.176
  },
  "oklch": {
    "l": 0.46619,
    "c": 0.25824,
    "h": 279.7
  },
  "luminance": 0.08268
}

Semantic roles & 50–950 ramp

primary
#4D22E3
secondary
#C8DB86
accent
#F434C9
background
#FAF6FE
surface
#F4EBFD
border
#CEC6D5
text
#0F0717
muted
#7F7A85

Preview Lab

Preview with #4D22E3

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

Preview Lab → · Contrast checker → · Palette generator →

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