#792BA3#792BA3

#792BA3 is a mid, vivid violet. Relative luminance 0.084; OKLCH L 46.2% C 0.187 H 310.8°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#792BA3
RGBrgb(121, 43, 163)
HSLhsl(279, 58%, 40%)
HSVhsv(279, 74%, 64%)
CMYKcmyk(25.8%, 73.6%, 0%, 36.1%)
CIE-LABlab(34.88, 53.04, -49.88)
CIE-LCHlch(34.88, 72.81, 316.75°)
OKLaboklab(46.22% 0.1219 -0.1412)
OKLCHoklch(46.22% 0.187 310.8)
XYZxyz(15.3586, 8.4374, 35.4627)
Luminance0.0844 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792BA3 #55A32B
analogous
#3D2BA3 #792BA3 #A32B91
triadic
#792BA3 #A3792B #2BA379
tetradic
#792BA3 #A33D2B #55A32B #2B91A3
square
#792BA3 #A33D2B #55A32B #2B91A3
split-complementary
#792BA3 #91A32B #2BA33D
monochromatic
#311142 #551E73 #792BA3 #9B3FCC #B46FD9

Accessibility & contrast

On white

7.81
#792BA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#792BA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792BA3
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792BA3#FFFFFF#000000##FFFFFF
##792BA31.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)
#004FA6
Deuteranopia (green-blind)
#1553A0
Tritanopia (blue-blind)
#734665
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #792ba3;
/* rgb */ color: rgb(121, 43, 163);
/* oklch */ color: oklch(46.2% 0.187 310.8);
Tailwind
colors: {
  custom: {
    50: '#a46cbf',
    500: '#792ba3',
    950: '#000000',
  },
}
SCSS
$custom: #792ba3;
$custom-light: #a46cbf;
$custom-dark: #000000;
JSON
{
  "hex": "#792ba3",
  "rgb": {
    "r": 121,
    "g": 43,
    "b": 163
  },
  "hsl": {
    "h": 279,
    "s": 58.252,
    "l": 40.392
  },
  "oklch": {
    "l": 0.4622,
    "c": 0.18652,
    "h": 310.8
  },
  "luminance": 0.08437
}

Semantic roles & 50–950 ramp

primary
#792BA3
secondary
#88C06A
accent
#E1467D
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #792BA3

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

Preview Lab → · Contrast checker → · Palette generator →

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