#7D22B3#7D22B3

#7D22B3 is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 47.2% C 0.212 H 308.5°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#7D22B3
RGBrgb(125, 34, 179)
HSLhsl(278, 68%, 42%)
HSVhsv(278, 81%, 70%)
CMYKcmyk(30.2%, 81%, 0%, 29.8%)
CIE-LABlab(35.52, 60.57, -58.40)
CIE-LCHlch(35.52, 84.13, 316.05°)
OKLaboklab(47.17% 0.1318 -0.166)
OKLCHoklch(47.17% 0.212 308.5)
XYZxyz(17.1645, 8.7590, 43.4255)
Luminance0.0876 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D22B3 #58B322
analogous
#3522B3 #7D22B3 #B322A1
triadic
#7D22B3 #B37D22 #22B37D
tetradic
#7D22B3 #B33522 #58B322 #22A1B3
square
#7D22B3 #B33522 #58B322 #22A1B3
split-complementary
#7D22B3 #A1B322 #22B335
monochromatic
#350E4C #591880 #7D22B3 #9E39D9 #B76CE3

Accessibility & contrast

On white

7.63
#7D22B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#7D22B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D22B3
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D22B3#FFFFFF#000000##FFFFFF
##7D22B31.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7d22b3;
/* rgb */ color: rgb(125, 34, 179);
/* oklch */ color: oklch(47.2% 0.212 308.5);
Tailwind
colors: {
  custom: {
    50: '#a869cb',
    500: '#7d22b3',
    950: '#000000',
  },
}
SCSS
$custom: #7d22b3;
$custom-light: #a869cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7d22b3",
  "rgb": {
    "r": 125,
    "g": 34,
    "b": 179
  },
  "hsl": {
    "h": 277.655,
    "s": 68.075,
    "l": 41.765
  },
  "oklch": {
    "l": 0.4717,
    "c": 0.21199,
    "h": 308.5
  },
  "luminance": 0.08759
}

Semantic roles & 50–950 ramp

primary
#7D22B3
secondary
#8CC968
accent
#EB3D7E
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7D22B3

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

Preview Lab → · Contrast checker → · Palette generator →

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