#792CA7#792CA7

#792CA7 is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.6% C 0.189 H 309.4°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#792CA7
RGBrgb(121, 44, 167)
HSLhsl(278, 58%, 41%)
HSVhsv(278, 74%, 65%)
CMYKcmyk(27.5%, 73.7%, 0%, 34.5%)
CIE-LABlab(35.31, 53.50, -51.58)
CIE-LCHlch(35.31, 74.32, 316.05°)
OKLaboklab(46.62% 0.1202 -0.1462)
OKLCHoklch(46.62% 0.189 309.4)
XYZxyz(15.7595, 8.6566, 37.3924)
Luminance0.0866 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792CA7 #5AA72C
analogous
#3C2CA7 #792CA7 #A72C98
triadic
#792CA7 #A7792C #2CA779
tetradic
#792CA7 #A73C2C #5AA72C #2C98A7
square
#792CA7 #A73C2C #5AA72C #2C98A7
split-complementary
#792CA7 #98A72C #2CA73C
monochromatic
#331246 #561F77 #792CA7 #9A43CD #B473DA

Accessibility & contrast

On white

7.69
#792CA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#792CA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792CA7
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792CA7#FFFFFF#000000##FFFFFF
##792CA71.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AA
Deuteranopia (green-blind)
#0C54A4
Tritanopia (blue-blind)
#724867
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #792ca7;
/* rgb */ color: rgb(121, 44, 167);
/* oklch */ color: oklch(46.6% 0.189 309.4);
Tailwind
colors: {
  custom: {
    50: '#a46dc2',
    500: '#792ca7',
    950: '#000000',
  },
}
SCSS
$custom: #792ca7;
$custom-light: #a46dc2;
$custom-dark: #000000;
JSON
{
  "hex": "#792ca7",
  "rgb": {
    "r": 121,
    "g": 44,
    "b": 167
  },
  "hsl": {
    "h": 277.561,
    "s": 58.294,
    "l": 41.373
  },
  "oklch": {
    "l": 0.46622,
    "c": 0.18929,
    "h": 309.4
  },
  "luminance": 0.08656
}

Semantic roles & 50–950 ramp

primary
#792CA7
secondary
#8DC26D
accent
#E24680
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #792CA7

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

Preview Lab → · Contrast checker → · Palette generator →

#792CA7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva