#7B22BB#7B22BB

#7B22BB is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 47.6% C 0.219 H 305.4°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#7B22BB
RGBrgb(123, 34, 187)
HSLhsl(275, 69%, 43%)
HSVhsv(275, 82%, 73%)
CMYKcmyk(34.2%, 81.8%, 0%, 26.7%)
CIE-LABlab(35.87, 61.97, -62.56)
CIE-LCHlch(35.87, 88.06, 314.73°)
OKLaboklab(47.56% 0.1269 -0.1783)
OKLCHoklch(47.56% 0.219 305.4)
XYZxyz(17.7080, 8.9430, 47.7974)
Luminance0.0894 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B22BB #62BB22
analogous
#2E22BB #7B22BB #BB22AE
triadic
#7B22BB #BB7B22 #22BB7B
tetradic
#7B22BB #BB2E22 #62BB22 #22AEBB
square
#7B22BB #BB2E22 #62BB22 #22AEBB
split-complementary
#7B22BB #AEBB22 #22BB2E
monochromatic
#370F53 #591987 #7B22BB #9A3EDC #B572E5

Accessibility & contrast

On white

7.53
#7B22BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#7B22BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B22BB
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B22BB#FFFFFF#000000##FFFFFF
##7B22BB1.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BF
Deuteranopia (green-blind)
#0055B8
Tritanopia (blue-blind)
#6F4C70
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7b22bb;
/* rgb */ color: rgb(123, 34, 187);
/* oklch */ color: oklch(47.6% 0.219 305.4);
Tailwind
colors: {
  custom: {
    50: '#a769d0',
    500: '#7b22bb',
    950: '#000000',
  },
}
SCSS
$custom: #7b22bb;
$custom-light: #a769d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7b22bb",
  "rgb": {
    "r": 123,
    "g": 34,
    "b": 187
  },
  "hsl": {
    "h": 274.902,
    "s": 69.231,
    "l": 43.333
  },
  "oklch": {
    "l": 0.47561,
    "c": 0.21885,
    "h": 305.4
  },
  "luminance": 0.08943
}

Semantic roles & 50–950 ramp

primary
#7B22BB
secondary
#95CC6D
accent
#EC3C85
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100714
muted
#7F7A82

Preview Lab

Preview with #7B22BB

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

Preview Lab → · Contrast checker → · Palette generator →

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