#7C22B3#7C22B3

#7C22B3 is a mid, highly saturated violet. Relative luminance 0.087; OKLCH L 47.0% C 0.212 H 308.0°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#7C22B3
RGBrgb(124, 34, 179)
HSLhsl(277, 68%, 42%)
HSVhsv(277, 81%, 70%)
CMYKcmyk(30.7%, 81%, 0%, 29.8%)
CIE-LABlab(35.37, 60.40, -58.64)
CIE-LCHlch(35.37, 84.19, 315.85°)
OKLaboklab(47.04% 0.1305 -0.1668)
OKLCHoklch(47.04% 0.212 308)
XYZxyz(17.0192, 8.6841, 43.4187)
Luminance0.0868 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C22B3 #59B322
analogous
#3322B3 #7C22B3 #B322A2
triadic
#7C22B3 #B37C22 #22B37C
tetradic
#7C22B3 #B33322 #59B322 #22A2B3
square
#7C22B3 #B33322 #59B322 #22A2B3
split-complementary
#7C22B3 #A2B322 #22B333
monochromatic
#350E4C #581880 #7C22B3 #9C39D9 #B66CE3

Accessibility & contrast

On white

7.67
#7C22B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#7C22B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C22B3
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C22B3#FFFFFF#000000##FFFFFF
##7C22B31.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7c22b3;
/* rgb */ color: rgb(124, 34, 179);
/* oklch */ color: oklch(47.0% 0.212 308.0);
Tailwind
colors: {
  custom: {
    50: '#a769cb',
    500: '#7c22b3',
    950: '#000000',
  },
}
SCSS
$custom: #7c22b3;
$custom-light: #a769cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7c22b3",
  "rgb": {
    "r": 124,
    "g": 34,
    "b": 179
  },
  "hsl": {
    "h": 277.241,
    "s": 68.075,
    "l": 41.765
  },
  "oklch": {
    "l": 0.47037,
    "c": 0.21174,
    "h": 308
  },
  "luminance": 0.08684
}

Semantic roles & 50–950 ramp

primary
#7C22B3
secondary
#8DC968
accent
#EB3D7F
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7C22B3

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

Preview Lab → · Contrast checker → · Palette generator →

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