#792FB5#792FB5

#792FB5 is a mid, vivid violet. Relative luminance 0.094; OKLCH L 48.0% C 0.200 H 305.1°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#792FB5
RGBrgb(121, 47, 181)
HSLhsl(273, 59%, 45%)
HSVhsv(273, 74%, 71%)
CMYKcmyk(33.1%, 74%, 0%, 29%)
CIE-LABlab(36.81, 55.42, -57.51)
CIE-LCHlch(36.81, 79.86, 313.94°)
OKLaboklab(48.01% 0.1148 -0.1636)
OKLCHoklch(48.01% 0.2 305.1)
XYZxyz(17.2403, 9.4343, 44.6198)
Luminance0.0943 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792FB5 #6BB52F
analogous
#362FB5 #792FB5 #B52FAE
triadic
#792FB5 #B5792F #2FB579
tetradic
#792FB5 #B5362F #6BB52F #2FAEB5
square
#792FB5 #B5362F #6BB52F #2FAEB5
split-complementary
#792FB5 #AEB52F #2FB536
monochromatic
#381654 #592284 #792FB5 #9750D1 #B480DE

Accessibility & contrast

On white

7.27
#792FB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#792FB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792FB5
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792FB5#FFFFFF#000000##FFFFFF
##792FB51.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B9
Deuteranopia (green-blind)
#0057B2
Tritanopia (blue-blind)
#6E5070
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #792fb5;
/* rgb */ color: rgb(121, 47, 181);
/* oklch */ color: oklch(48.0% 0.200 305.1);
Tailwind
colors: {
  custom: {
    50: '#a56fcc',
    500: '#792fb5',
    950: '#000000',
  },
}
SCSS
$custom: #792fb5;
$custom-light: #a56fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#792fb5",
  "rgb": {
    "r": 121,
    "g": 47,
    "b": 181
  },
  "hsl": {
    "h": 273.134,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.48007,
    "c": 0.19988,
    "h": 305.1
  },
  "luminance": 0.09434
}

Semantic roles & 50–950 ramp

primary
#792FB5
secondary
#9CC779
accent
#E2468C
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #792FB5

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

Preview Lab → · Contrast checker → · Palette generator →

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