#7F22BD#7F22BD

#7F22BD is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 48.2% C 0.222 H 306.5°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#7F22BD
RGBrgb(127, 34, 189)
HSLhsl(276, 70%, 44%)
HSVhsv(276, 82%, 74%)
CMYKcmyk(32.8%, 82%, 0%, 25.9%)
CIE-LABlab(36.61, 63.03, -62.51)
CIE-LCHlch(36.61, 88.77, 315.24°)
OKLaboklab(48.24% 0.1319 -0.178)
OKLCHoklch(48.24% 0.222 306.5)
XYZxyz(18.5077, 9.3304, 48.9602)
Luminance0.0933 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F22BD #60BD22
analogous
#3122BD #7F22BD #BD22AD
triadic
#7F22BD #BD7F22 #22BD7F
tetradic
#7F22BD #BD3122 #60BD22 #22ADBD
square
#7F22BD #BD3122 #60BD22 #22ADBD
split-complementary
#7F22BD #ADBD22 #22BD31
monochromatic
#390F55 #5C1989 #7F22BD #9E40DD #B873E6

Accessibility & contrast

On white

7.33
#7F22BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#7F22BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F22BD
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F22BD#FFFFFF#000000##FFFFFF
##7F22BD1.007.332.877.33
#FFFFFF7.331.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C1
Deuteranopia (green-blind)
#0057BA
Tritanopia (blue-blind)
#744D72
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7f22bd;
/* rgb */ color: rgb(127, 34, 189);
/* oklch */ color: oklch(48.2% 0.222 306.5);
Tailwind
colors: {
  custom: {
    50: '#aa6ad2',
    500: '#7f22bd',
    950: '#000000',
  },
}
SCSS
$custom: #7f22bd;
$custom-light: #aa6ad2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f22bd",
  "rgb": {
    "r": 127,
    "g": 34,
    "b": 189
  },
  "hsl": {
    "h": 276,
    "s": 69.507,
    "l": 43.725
  },
  "oklch": {
    "l": 0.48244,
    "c": 0.22157,
    "h": 306.5
  },
  "luminance": 0.0933
}

Semantic roles & 50–950 ramp

primary
#7F22BD
secondary
#94CD6E
accent
#EC3B82
background
#FBF6FD
surface
#F6ECFA
border
#D0C7D3
text
#110714
muted
#807A83

Preview Lab

Preview with #7F22BD

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

Preview Lab → · Contrast checker → · Palette generator →

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