#7E22B3#7E22B3

#7E22B3 is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 47.3% C 0.212 H 308.9°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#7E22B3
RGBrgb(126, 34, 179)
HSLhsl(278, 68%, 42%)
HSVhsv(278, 81%, 70%)
CMYKcmyk(29.6%, 81%, 0%, 29.8%)
CIE-LABlab(35.66, 60.73, -58.15)
CIE-LCHlch(35.66, 84.08, 316.24°)
OKLaboklab(47.3% 0.1332 -0.1652)
OKLCHoklch(47.3% 0.212 308.9)
XYZxyz(17.3112, 8.8347, 43.4324)
Luminance0.0883 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E22B3 #57B322
analogous
#3622B3 #7E22B3 #B322A0
triadic
#7E22B3 #B37E22 #22B37E
tetradic
#7E22B3 #B33622 #57B322 #22A0B3
square
#7E22B3 #B33622 #57B322 #22A0B3
split-complementary
#7E22B3 #A0B322 #22B336
monochromatic
#360E4C #5A1880 #7E22B3 #9F39D9 #B86CE3

Accessibility & contrast

On white

7.59
#7E22B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#7E22B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E22B3
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E22B3#FFFFFF#000000##FFFFFF
##7E22B31.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B7
Deuteranopia (green-blind)
#0055B0
Tritanopia (blue-blind)
#76486C
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7e22b3;
/* rgb */ color: rgb(126, 34, 179);
/* oklch */ color: oklch(47.3% 0.212 308.9);
Tailwind
colors: {
  custom: {
    50: '#a969cb',
    500: '#7e22b3',
    950: '#000000',
  },
}
SCSS
$custom: #7e22b3;
$custom-light: #a969cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7e22b3",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 179
  },
  "hsl": {
    "h": 278.069,
    "s": 68.075,
    "l": 41.765
  },
  "oklch": {
    "l": 0.47304,
    "c": 0.21226,
    "h": 308.9
  },
  "luminance": 0.08834
}

Semantic roles & 50–950 ramp

primary
#7E22B3
secondary
#8BC968
accent
#EB3D7C
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7E22B3

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

Preview Lab → · Contrast checker → · Palette generator →

#7E22B3 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva