#7C22BB#7C22BB

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

Color values

HEX#7C22BB
RGBrgb(124, 34, 187)
HSLhsl(275, 69%, 43%)
HSVhsv(275, 82%, 73%)
CMYKcmyk(33.7%, 81.8%, 0%, 26.7%)
CIE-LABlab(36.02, 62.13, -62.32)
CIE-LCHlch(36.02, 88.00, 314.91°)
OKLaboklab(47.69% 0.1283 -0.1776)
OKLCHoklch(47.69% 0.219 305.8)
XYZxyz(17.8518, 9.0171, 47.8041)
Luminance0.0902 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C22BB #61BB22
analogous
#2F22BB #7C22BB #BB22AD
triadic
#7C22BB #BB7C22 #22BB7C
tetradic
#7C22BB #BB2F22 #61BB22 #22ADBB
square
#7C22BB #BB2F22 #61BB22 #22ADBB
split-complementary
#7C22BB #ADBB22 #22BB2F
monochromatic
#370F53 #5A1987 #7C22BB #9B3EDC #B672E5

Accessibility & contrast

On white

7.49
#7C22BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#7C22BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C22BB
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C22BB#FFFFFF#000000##FFFFFF
##7C22BB1.007.492.807.49
#FFFFFF7.491.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BF
Deuteranopia (green-blind)
#0055B8
Tritanopia (blue-blind)
#704C70
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7c22bb;
/* rgb */ color: rgb(124, 34, 187);
/* oklch */ color: oklch(47.7% 0.219 305.8);
Tailwind
colors: {
  custom: {
    50: '#a86ad0',
    500: '#7c22bb',
    950: '#000000',
  },
}
SCSS
$custom: #7c22bb;
$custom-light: #a86ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#7c22bb",
  "rgb": {
    "r": 124,
    "g": 34,
    "b": 187
  },
  "hsl": {
    "h": 275.294,
    "s": 69.231,
    "l": 43.333
  },
  "oklch": {
    "l": 0.4769,
    "c": 0.21906,
    "h": 305.8
  },
  "luminance": 0.09017
}

Semantic roles & 50–950 ramp

primary
#7C22BB
secondary
#94CC6D
accent
#EC3C84
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100714
muted
#7F7A82

Preview Lab

Preview with #7C22BB

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

Preview Lab → · Contrast checker → · Palette generator →

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