#7F22B3#7F22B3

#7F22B3 is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 47.4% C 0.213 H 309.3°. Best body text is #FFFFFF at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#7F22B3
RGBrgb(127, 34, 179)
HSLhsl(278, 68%, 42%)
HSVhsv(278, 81%, 70%)
CMYKcmyk(29.1%, 81%, 0%, 29.8%)
CIE-LABlab(35.81, 60.90, -57.90)
CIE-LCHlch(35.81, 84.03, 316.45°)
OKLaboklab(47.44% 0.1346 -0.1645)
OKLCHoklch(47.44% 0.213 309.3)
XYZxyz(17.4594, 8.9111, 43.4393)
Luminance0.0891 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F22B3 #56B322
analogous
#3722B3 #7F22B3 #B3229F
triadic
#7F22B3 #B37F22 #22B37F
tetradic
#7F22B3 #B33722 #56B322 #229FB3
square
#7F22B3 #B33722 #56B322 #229FB3
split-complementary
#7F22B3 #9FB322 #22B337
monochromatic
#360E4C #5B1880 #7F22B3 #A039D9 #B96CE3

Accessibility & contrast

On white

7.55
#7F22B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#7F22B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F22B3
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F22B3#FFFFFF#000000##FFFFFF
##7F22B31.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f22b3;
/* rgb */ color: rgb(127, 34, 179);
/* oklch */ color: oklch(47.4% 0.213 309.3);
Tailwind
colors: {
  custom: {
    50: '#a96acb',
    500: '#7f22b3',
    950: '#000000',
  },
}
SCSS
$custom: #7f22b3;
$custom-light: #a96acb;
$custom-dark: #000000;
JSON
{
  "hex": "#7f22b3",
  "rgb": {
    "r": 127,
    "g": 34,
    "b": 179
  },
  "hsl": {
    "h": 278.483,
    "s": 68.075,
    "l": 41.765
  },
  "oklch": {
    "l": 0.47438,
    "c": 0.21252,
    "h": 309.3
  },
  "luminance": 0.08911
}

Semantic roles & 50–950 ramp

primary
#7F22B3
secondary
#8BC968
accent
#EB3D7B
background
#FAF6FC
surface
#F5ECF9
border
#CFC7D2
text
#110713
muted
#807A82

Preview Lab

Preview with #7F22B3

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

Preview Lab → · Contrast checker → · Palette generator →

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