#7B22BD#7B22BD

#7B22BD is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.7% C 0.221 H 304.9°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#7B22BD
RGBrgb(123, 34, 189)
HSLhsl(274, 70%, 44%)
HSVhsv(274, 82%, 74%)
CMYKcmyk(34.9%, 82%, 0%, 25.9%)
CIE-LABlab(36.04, 62.41, -63.47)
CIE-LCHlch(36.04, 89.02, 314.52°)
OKLaboklab(47.73% 0.1263 -0.181)
OKLCHoklch(47.73% 0.221 304.9)
XYZxyz(17.9236, 9.0292, 48.9328)
Luminance0.0903 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B22BD #64BD22
analogous
#2E22BD #7B22BD #BD22B1
triadic
#7B22BD #BD7B22 #22BD7B
tetradic
#7B22BD #BD2E22 #64BD22 #22B1BD
square
#7B22BD #BD2E22 #64BD22 #22B1BD
split-complementary
#7B22BD #B1BD22 #22BD2E
monochromatic
#370F55 #591989 #7B22BD #9A40DD #B573E6

Accessibility & contrast

On white

7.48
#7B22BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#7B22BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B22BD
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B22BD#FFFFFF#000000##FFFFFF
##7B22BD1.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C1
Deuteranopia (green-blind)
#0055BA
Tritanopia (blue-blind)
#6E4D71
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7b22bd;
/* rgb */ color: rgb(123, 34, 189);
/* oklch */ color: oklch(47.7% 0.221 304.9);
Tailwind
colors: {
  custom: {
    50: '#a86ad2',
    500: '#7b22bd',
    950: '#000000',
  },
}
SCSS
$custom: #7b22bd;
$custom-light: #a86ad2;
$custom-dark: #000000;
JSON
{
  "hex": "#7b22bd",
  "rgb": {
    "r": 123,
    "g": 34,
    "b": 189
  },
  "hsl": {
    "h": 274.452,
    "s": 69.507,
    "l": 43.725
  },
  "oklch": {
    "l": 0.47728,
    "c": 0.22068,
    "h": 304.9
  },
  "luminance": 0.09029
}

Semantic roles & 50–950 ramp

primary
#7B22BD
secondary
#96CD6E
accent
#EC3B87
background
#FAF6FD
surface
#F4ECFA
border
#CEC7D3
text
#100714
muted
#7F7A83

Preview Lab

Preview with #7B22BD

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

Preview Lab → · Contrast checker → · Palette generator →

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