#7E22B1#7E22B1

#7E22B1 is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 47.1% C 0.210 H 309.4°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#7E22B1
RGBrgb(126, 34, 177)
HSLhsl(279, 68%, 41%)
HSVhsv(279, 81%, 69%)
CMYKcmyk(28.8%, 80.8%, 0%, 30.6%)
CIE-LABlab(35.51, 60.31, -57.22)
CIE-LCHlch(35.51, 83.13, 316.51°)
OKLaboklab(47.15% 0.1337 -0.1625)
OKLCHoklch(47.15% 0.21 309.4)
XYZxyz(17.1104, 8.7543, 42.3748)
Luminance0.0875 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E22B1 #55B122
analogous
#3622B1 #7E22B1 #B1229D
triadic
#7E22B1 #B17E22 #22B17E
tetradic
#7E22B1 #B13622 #55B122 #229DB1
square
#7E22B1 #B13622 #55B122 #229DB1
split-complementary
#7E22B1 #9DB122 #22B136
monochromatic
#350E4A #59187E #7E22B1 #9F38D9 #B86BE3

Accessibility & contrast

On white

7.63
#7E22B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#7E22B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E22B1
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E22B1#FFFFFF#000000##FFFFFF
##7E22B11.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B5
Deuteranopia (green-blind)
#0055AE
Tritanopia (blue-blind)
#76476B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7e22b1;
/* rgb */ color: rgb(126, 34, 177);
/* oklch */ color: oklch(47.1% 0.210 309.4);
Tailwind
colors: {
  custom: {
    50: '#a969c9',
    500: '#7e22b1',
    950: '#000000',
  },
}
SCSS
$custom: #7e22b1;
$custom-light: #a969c9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e22b1",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 177
  },
  "hsl": {
    "h": 278.601,
    "s": 67.773,
    "l": 41.373
  },
  "oklch": {
    "l": 0.47145,
    "c": 0.21044,
    "h": 309.4
  },
  "luminance": 0.08754
}

Semantic roles & 50–950 ramp

primary
#7E22B1
secondary
#89C966
accent
#EB3D7B
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7E22B1

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

Preview Lab → · Contrast checker → · Palette generator →

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