#792CB1#792CB1

#792CB1 is a mid, vivid violet. Relative luminance 0.090; OKLCH L 47.4% C 0.199 H 306.5°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#792CB1
RGBrgb(121, 44, 177)
HSLhsl(275, 60%, 43%)
HSVhsv(275, 75%, 69%)
CMYKcmyk(31.6%, 75.1%, 0%, 30.6%)
CIE-LABlab(36.06, 55.75, -56.34)
CIE-LCHlch(36.06, 79.26, 314.70°)
OKLaboklab(47.39% 0.1184 -0.1602)
OKLCHoklch(47.39% 0.199 306.5)
XYZxyz(16.7199, 9.0408, 42.4507)
Luminance0.0904 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792CB1 #64B12C
analogous
#362CB1 #792CB1 #B12CA6
triadic
#792CB1 #B1792C #2CB179
tetradic
#792CB1 #B1362C #64B12C #2CA6B1
square
#792CB1 #B1362C #64B12C #2CA6B1
split-complementary
#792CB1 #A6B12C #2CB136
monochromatic
#36144F #572080 #792CB1 #9849D2 #B47ADE

Accessibility & contrast

On white

7.48
#792CB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#792CB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792CB1
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792CB1#FFFFFF#000000##FFFFFF
##792CB11.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B5
Deuteranopia (green-blind)
#0055AE
Tritanopia (blue-blind)
#6F4D6D
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #792cb1;
/* rgb */ color: rgb(121, 44, 177);
/* oklch */ color: oklch(47.4% 0.199 306.5);
Tailwind
colors: {
  custom: {
    50: '#a56dc9',
    500: '#792cb1',
    950: '#000000',
  },
}
SCSS
$custom: #792cb1;
$custom-light: #a56dc9;
$custom-dark: #000000;
JSON
{
  "hex": "#792cb1",
  "rgb": {
    "r": 121,
    "g": 44,
    "b": 177
  },
  "hsl": {
    "h": 274.737,
    "s": 60.181,
    "l": 43.333
  },
  "oklch": {
    "l": 0.47386,
    "c": 0.1992,
    "h": 306.5
  },
  "luminance": 0.09041
}

Semantic roles & 50–950 ramp

primary
#792CB1
secondary
#96C673
accent
#E34487
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #792CB1

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

Preview Lab → · Contrast checker → · Palette generator →

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