#7F22B2#7F22B2

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

Color values

HEX#7F22B2
RGBrgb(127, 34, 178)
HSLhsl(279, 68%, 42%)
HSVhsv(279, 81%, 70%)
CMYKcmyk(28.7%, 80.9%, 0%, 30.2%)
CIE-LABlab(35.73, 60.69, -57.43)
CIE-LCHlch(35.73, 83.56, 316.58°)
OKLaboklab(47.36% 0.1348 -0.1631)
OKLCHoklch(47.36% 0.212 309.6)
XYZxyz(17.3587, 8.8708, 42.9086)
Luminance0.0887 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F22B2 #55B222
analogous
#3722B2 #7F22B2 #B2229D
triadic
#7F22B2 #B27F22 #22B27F
tetradic
#7F22B2 #B23722 #55B222 #229DB2
square
#7F22B2 #B23722 #55B222 #229DB2
split-complementary
#7F22B2 #9DB222 #22B237
monochromatic
#360E4B #5A187F #7F22B2 #A038D9 #B96CE3

Accessibility & contrast

On white

7.57
#7F22B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F22B2
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F22B2#FFFFFF#000000##FFFFFF
##7F22B21.007.572.777.57
#FFFFFF7.571.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B6
Deuteranopia (green-blind)
#0055AF
Tritanopia (blue-blind)
#77486B
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7f22b2;
/* rgb */ color: rgb(127, 34, 178);
/* oklch */ color: oklch(47.4% 0.212 309.6);
Tailwind
colors: {
  custom: {
    50: '#a969ca',
    500: '#7f22b2',
    950: '#000000',
  },
}
SCSS
$custom: #7f22b2;
$custom-light: #a969ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7f22b2",
  "rgb": {
    "r": 127,
    "g": 34,
    "b": 178
  },
  "hsl": {
    "h": 278.75,
    "s": 67.925,
    "l": 41.569
  },
  "oklch": {
    "l": 0.47359,
    "c": 0.21162,
    "h": 309.6
  },
  "luminance": 0.0887
}

Semantic roles & 50–950 ramp

primary
#7F22B2
secondary
#8AC967
accent
#EB3D7B
background
#FAF6FC
surface
#F5ECF8
border
#CFC7D1
text
#110713
muted
#807A82

Preview Lab

Preview with #7F22B2

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

Preview Lab → · Contrast checker → · Palette generator →

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