#7F22B1#7F22B1

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

Color values

HEX#7F22B1
RGBrgb(127, 34, 177)
HSLhsl(279, 68%, 41%)
HSVhsv(279, 81%, 69%)
CMYKcmyk(28.2%, 80.8%, 0%, 30.6%)
CIE-LABlab(35.66, 60.48, -56.97)
CIE-LCHlch(35.66, 83.08, 316.71°)
OKLaboklab(47.28% 0.1351 -0.1617)
OKLCHoklch(47.28% 0.211 309.9)
XYZxyz(17.2586, 8.8308, 42.3818)
Luminance0.0883 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F22B1 #54B122
analogous
#3822B1 #7F22B1 #B1229C
triadic
#7F22B1 #B17F22 #22B17F
tetradic
#7F22B1 #B13822 #54B122 #229CB1
square
#7F22B1 #B13822 #54B122 #229CB1
split-complementary
#7F22B1 #9CB122 #22B138
monochromatic
#350E4A #5A187E #7F22B1 #A038D9 #B96BE3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F22B1#FFFFFF#000000##FFFFFF
##7F22B11.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)
#0050B5
Deuteranopia (green-blind)
#0055AE
Tritanopia (blue-blind)
#78476B
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7f22b1;
/* rgb */ color: rgb(127, 34, 177);
/* oklch */ color: oklch(47.3% 0.211 309.9);
Tailwind
colors: {
  custom: {
    50: '#a969c9',
    500: '#7f22b1',
    950: '#000000',
  },
}
SCSS
$custom: #7f22b1;
$custom-light: #a969c9;
$custom-dark: #000000;
JSON
{
  "hex": "#7f22b1",
  "rgb": {
    "r": 127,
    "g": 34,
    "b": 177
  },
  "hsl": {
    "h": 279.021,
    "s": 67.773,
    "l": 41.373
  },
  "oklch": {
    "l": 0.4728,
    "c": 0.21072,
    "h": 309.9
  },
  "luminance": 0.0883
}

Semantic roles & 50–950 ramp

primary
#7F22B1
secondary
#89C966
accent
#EB3D7A
background
#FAF6FC
surface
#F5ECF8
border
#CFC7D1
text
#110713
muted
#807A82

Preview Lab

Preview with #7F22B1

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

Preview Lab → · Contrast checker → · Palette generator →

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