#7B22BF#7B22BF

#7B22BF is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.9% C 0.223 H 304.4°. Best body text is #FFFFFF at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#7B22BF
RGBrgb(123, 34, 191)
HSLhsl(274, 70%, 44%)
HSVhsv(274, 82%, 75%)
CMYKcmyk(35.6%, 82.2%, 0%, 25.1%)
CIE-LABlab(36.21, 62.85, -64.37)
CIE-LCHlch(36.21, 89.97, 314.31°)
OKLaboklab(47.9% 0.1257 -0.1836)
OKLCHoklch(47.9% 0.223 304.4)
XYZxyz(18.1422, 9.1167, 50.0840)
Luminance0.0912 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B22BF #66BF22
analogous
#2D22BF #7B22BF #BF22B5
triadic
#7B22BF #BF7B22 #22BF7B
tetradic
#7B22BF #BF2D22 #66BF22 #22B5BF
square
#7B22BF #BF2D22 #66BF22 #22B5BF
split-complementary
#7B22BF #B5BF22 #22BF2D
monochromatic
#381057 #5A198B #7B22BF #9A41DD #B575E6

Accessibility & contrast

On white

7.44
#7B22BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#7B22BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B22BF
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B22BF#FFFFFF#000000##FFFFFF
##7B22BF1.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C3
Deuteranopia (green-blind)
#0055BC
Tritanopia (blue-blind)
#6D4E73
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7b22bf;
/* rgb */ color: rgb(123, 34, 191);
/* oklch */ color: oklch(47.9% 0.223 304.4);
Tailwind
colors: {
  custom: {
    50: '#a86ad3',
    500: '#7b22bf',
    950: '#000000',
  },
}
SCSS
$custom: #7b22bf;
$custom-light: #a86ad3;
$custom-dark: #000000;
JSON
{
  "hex": "#7b22bf",
  "rgb": {
    "r": 123,
    "g": 34,
    "b": 191
  },
  "hsl": {
    "h": 274.013,
    "s": 69.778,
    "l": 44.118
  },
  "oklch": {
    "l": 0.47895,
    "c": 0.22253,
    "h": 304.4
  },
  "luminance": 0.09117
}

Semantic roles & 50–950 ramp

primary
#7B22BF
secondary
#98CE6F
accent
#ED3B88
background
#FAF6FD
surface
#F4ECFA
border
#CEC7D3
text
#100714
muted
#7F7A83

Preview Lab

Preview with #7B22BF

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

Preview Lab → · Contrast checker → · Palette generator →

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