#7B22B3#7B22B3

#7B22B3 is a mid, highly saturated violet. Relative luminance 0.086; OKLCH L 46.9% C 0.211 H 307.6°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#7B22B3
RGBrgb(123, 34, 179)
HSLhsl(277, 68%, 42%)
HSVhsv(277, 81%, 70%)
CMYKcmyk(31.3%, 81%, 0%, 29.8%)
CIE-LABlab(35.22, 60.24, -58.89)
CIE-LCHlch(35.22, 84.24, 315.65°)
OKLaboklab(46.91% 0.1291 -0.1675)
OKLCHoklch(46.91% 0.211 307.6)
XYZxyz(16.8754, 8.6099, 43.4120)
Luminance0.0861 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B22B3 #5AB322
analogous
#3322B3 #7B22B3 #B322A3
triadic
#7B22B3 #B37B22 #22B37B
tetradic
#7B22B3 #B33322 #5AB322 #22A3B3
square
#7B22B3 #B33322 #5AB322 #22A3B3
split-complementary
#7B22B3 #A3B322 #22B333
monochromatic
#340E4C #581880 #7B22B3 #9B39D9 #B56CE3

Accessibility & contrast

On white

7.71
#7B22B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#7B22B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B22B3
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B22B3#FFFFFF#000000##FFFFFF
##7B22B31.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B7
Deuteranopia (green-blind)
#0054B0
Tritanopia (blue-blind)
#72496C
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7b22b3;
/* rgb */ color: rgb(123, 34, 179);
/* oklch */ color: oklch(46.9% 0.211 307.6);
Tailwind
colors: {
  custom: {
    50: '#a769cb',
    500: '#7b22b3',
    950: '#000000',
  },
}
SCSS
$custom: #7b22b3;
$custom-light: #a769cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7b22b3",
  "rgb": {
    "r": 123,
    "g": 34,
    "b": 179
  },
  "hsl": {
    "h": 276.828,
    "s": 68.075,
    "l": 41.765
  },
  "oklch": {
    "l": 0.46905,
    "c": 0.21148,
    "h": 307.6
  },
  "luminance": 0.0861
}

Semantic roles & 50–950 ramp

primary
#7B22B3
secondary
#8DC968
accent
#EB3D80
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7B22B3

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

Preview Lab → · Contrast checker → · Palette generator →

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