#792CA5#792CA5

#792CA5 is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.5% C 0.187 H 310.1°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#792CA5
RGBrgb(121, 44, 165)
HSLhsl(278, 58%, 41%)
HSVhsv(278, 73%, 65%)
CMYKcmyk(26.7%, 73.3%, 0%, 35.3%)
CIE-LABlab(35.17, 53.06, -50.62)
CIE-LCHlch(35.17, 73.33, 316.35°)
OKLaboklab(46.47% 0.1206 -0.1434)
OKLCHoklch(46.47% 0.187 310.1)
XYZxyz(15.5760, 8.5833, 36.4262)
Luminance0.0858 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792CA5 #58A52C
analogous
#3C2CA5 #792CA5 #A52C94
triadic
#792CA5 #A5792C #2CA579
tetradic
#792CA5 #A53C2C #58A52C #2C94A5
square
#792CA5 #A53C2C #58A52C #2C94A5
split-complementary
#792CA5 #94A52C #2CA53C
monochromatic
#321244 #561F75 #792CA5 #9A42CD #B472D9

Accessibility & contrast

On white

7.73
#792CA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#792CA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792CA5
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792CA5#FFFFFF#000000##FFFFFF
##792CA51.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA8
Deuteranopia (green-blind)
#1254A2
Tritanopia (blue-blind)
#734866
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #792ca5;
/* rgb */ color: rgb(121, 44, 165);
/* oklch */ color: oklch(46.5% 0.187 310.1);
Tailwind
colors: {
  custom: {
    50: '#a46dc0',
    500: '#792ca5',
    950: '#000000',
  },
}
SCSS
$custom: #792ca5;
$custom-light: #a46dc0;
$custom-dark: #000000;
JSON
{
  "hex": "#792ca5",
  "rgb": {
    "r": 121,
    "g": 44,
    "b": 165
  },
  "hsl": {
    "h": 278.182,
    "s": 57.895,
    "l": 40.98
  },
  "oklch": {
    "l": 0.46473,
    "c": 0.18731,
    "h": 310.1
  },
  "luminance": 0.08583
}

Semantic roles & 50–950 ramp

primary
#792CA5
secondary
#8BC16C
accent
#E1477F
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #792CA5

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

Preview Lab → · Contrast checker → · Palette generator →

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