#7B22AF#7B22AF

#7B22AF is a mid, highly saturated violet. Relative luminance 0.085; OKLCH L 46.6% C 0.208 H 308.8°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#7B22AF
RGBrgb(123, 34, 175)
HSLhsl(278, 67%, 41%)
HSVhsv(278, 81%, 69%)
CMYKcmyk(29.7%, 80.6%, 0%, 31.4%)
CIE-LABlab(34.90, 59.38, -57.02)
CIE-LCHlch(34.90, 82.33, 316.16°)
OKLaboklab(46.58% 0.1301 -0.162)
OKLCHoklch(46.58% 0.208 308.8)
XYZxyz(16.4767, 8.4504, 41.3122)
Luminance0.0845 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B22AF #56AF22
analogous
#3422AF #7B22AF #AF229C
triadic
#7B22AF #AF7B22 #22AF7B
tetradic
#7B22AF #AF3422 #56AF22 #229CAF
square
#7B22AF #AF3422 #56AF22 #229CAF
split-complementary
#7B22AF #9CAF22 #22AF34
monochromatic
#330E49 #57187C #7B22AF #9C36D8 #B669E2

Accessibility & contrast

On white

7.81
#7B22AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#7B22AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B22AF
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B22AF#FFFFFF#000000##FFFFFF
##7B22AF1.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB3
Deuteranopia (green-blind)
#0053AC
Tritanopia (blue-blind)
#734769
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7b22af;
/* rgb */ color: rgb(123, 34, 175);
/* oklch */ color: oklch(46.6% 0.208 308.8);
Tailwind
colors: {
  custom: {
    50: '#a769c8',
    500: '#7b22af',
    950: '#000000',
  },
}
SCSS
$custom: #7b22af;
$custom-light: #a769c8;
$custom-dark: #000000;
JSON
{
  "hex": "#7b22af",
  "rgb": {
    "r": 123,
    "g": 34,
    "b": 175
  },
  "hsl": {
    "h": 277.872,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.46584,
    "c": 0.20781,
    "h": 308.8
  },
  "luminance": 0.0845
}

Semantic roles & 50–950 ramp

primary
#7B22AF
secondary
#89C865
accent
#EA3D7D
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7B22AF

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

Preview Lab → · Contrast checker → · Palette generator →

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