#7B22B9#7B22B9

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

Color values

HEX#7B22B9
RGBrgb(123, 34, 185)
HSLhsl(275, 69%, 43%)
HSVhsv(275, 82%, 73%)
CMYKcmyk(33.5%, 81.6%, 0%, 27.5%)
CIE-LABlab(35.71, 61.54, -61.65)
CIE-LCHlch(35.71, 87.11, 314.95°)
OKLaboklab(47.4% 0.1274 -0.1756)
OKLCHoklch(47.4% 0.217 306)
XYZxyz(17.4954, 8.8579, 46.6776)
Luminance0.0886 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B22B9 #60B922
analogous
#2F22B9 #7B22B9 #B922AC
triadic
#7B22B9 #B97B22 #22B97B
tetradic
#7B22B9 #B92F22 #60B922 #22ACB9
square
#7B22B9 #B92F22 #60B922 #22ACB9
split-complementary
#7B22B9 #ACB922 #22B92F
monochromatic
#360F52 #591885 #7B22B9 #9A3DDB #B571E5

Accessibility & contrast

On white

7.58
#7B22B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B22B9
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B22B9#FFFFFF#000000##FFFFFF
##7B22B91.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BD
Deuteranopia (green-blind)
#0054B6
Tritanopia (blue-blind)
#704B6F
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7b22b9;
/* rgb */ color: rgb(123, 34, 185);
/* oklch */ color: oklch(47.4% 0.217 306.0);
Tailwind
colors: {
  custom: {
    50: '#a769cf',
    500: '#7b22b9',
    950: '#000000',
  },
}
SCSS
$custom: #7b22b9;
$custom-light: #a769cf;
$custom-dark: #000000;
JSON
{
  "hex": "#7b22b9",
  "rgb": {
    "r": 123,
    "g": 34,
    "b": 185
  },
  "hsl": {
    "h": 275.364,
    "s": 68.95,
    "l": 42.941
  },
  "oklch": {
    "l": 0.47395,
    "c": 0.217,
    "h": 306
  },
  "luminance": 0.08858
}

Semantic roles & 50–950 ramp

primary
#7B22B9
secondary
#93CB6B
accent
#EC3C84
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100714
muted
#7F7A82

Preview Lab

Preview with #7B22B9

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

Preview Lab → · Contrast checker → · Palette generator →

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