#4C22E3#4C22E3

#4C22E3 is a mid, highly saturated violet. Relative luminance 0.082; OKLCH L 46.5% C 0.258 H 279.4°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#4C22E3
RGBrgb(76, 34, 227)
HSLhsl(253, 78%, 51%)
HSVhsv(253, 85%, 89%)
CMYKcmyk(66.5%, 85%, 0%, 11%)
CIE-LABlab(34.45, 66.53, -88.33)
CIE-LCHlch(34.45, 110.58, 306.99°)
OKLaboklab(46.54% 0.0421 -0.255)
OKLCHoklch(46.54% 0.258 279.4)
XYZxyz(17.4132, 8.2251, 73.3281)
Luminance0.0823 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C22E3 #B9E322
analogous
#2258E3 #4C22E3 #AC22E3
triadic
#4C22E3 #E34C22 #22E34C
tetradic
#4C22E3 #E32258 #B9E322 #22E3AC
square
#4C22E3 #E32258 #B9E322 #22E3AC
split-complementary
#4C22E3 #E3AC22 #58E322
monochromatic
#27107B #3816B1 #4C22E3 #7858EA #A48FF1

Accessibility & contrast

On white

7.94
#4C22E3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C22E3
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C22E3#FFFFFF#000000##FFFFFF
##4C22E31.007.942.657.94
#FFFFFF7.941.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c22e3;
/* rgb */ color: rgb(76, 34, 227);
/* oklch */ color: oklch(46.5% 0.258 279.4);
Tailwind
colors: {
  custom: {
    50: '#9367ed',
    500: '#4c22e3',
    950: '#000000',
  },
}
SCSS
$custom: #4c22e3;
$custom-light: #9367ed;
$custom-dark: #000000;
JSON
{
  "hex": "#4c22e3",
  "rgb": {
    "r": 76,
    "g": 34,
    "b": 227
  },
  "hsl": {
    "h": 253.057,
    "s": 77.51,
    "l": 51.176
  },
  "oklch": {
    "l": 0.46541,
    "c": 0.25843,
    "h": 279.4
  },
  "luminance": 0.08227
}

Semantic roles & 50–950 ramp

primary
#4C22E3
secondary
#C8DB86
accent
#F434CA
background
#FAF6FE
surface
#F3EBFD
border
#CDC6D5
text
#0F0717
muted
#7F7A85

Preview Lab

Preview with #4C22E3

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

Preview Lab → · Contrast checker → · Palette generator →

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