#792EB7#792EB7

#792EB7 is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 48.1% C 0.203 H 304.6°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#792EB7
RGBrgb(121, 46, 183)
HSLhsl(273, 60%, 45%)
HSVhsv(273, 75%, 72%)
CMYKcmyk(33.9%, 74.9%, 0%, 28.2%)
CIE-LABlab(36.81, 56.30, -58.68)
CIE-LCHlch(36.81, 81.32, 313.81°)
OKLaboklab(48.06% 0.1153 -0.1671)
OKLCHoklch(48.06% 0.203 304.6)
XYZxyz(17.4074, 9.4379, 45.6952)
Luminance0.0944 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792EB7 #6CB72E
analogous
#352EB7 #792EB7 #B72EB0
triadic
#792EB7 #B7792E #2EB779
tetradic
#792EB7 #B7352E #6CB72E #2EB0B7
square
#792EB7 #B7352E #6CB72E #2EB0B7
split-complementary
#792EB7 #B0B72E #2EB735
monochromatic
#381555 #592286 #792EB7 #974FD3 #B480DF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##792EB7#FFFFFF#000000##FFFFFF
##792EB71.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)
#0055BB
Deuteranopia (green-blind)
#0057B4
Tritanopia (blue-blind)
#6D5071
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #792eb7;
/* rgb */ color: rgb(121, 46, 183);
/* oklch */ color: oklch(48.1% 0.203 304.6);
Tailwind
colors: {
  custom: {
    50: '#a56ece',
    500: '#792eb7',
    950: '#000000',
  },
}
SCSS
$custom: #792eb7;
$custom-light: #a56ece;
$custom-dark: #000000;
JSON
{
  "hex": "#792eb7",
  "rgb": {
    "r": 121,
    "g": 46,
    "b": 183
  },
  "hsl": {
    "h": 272.847,
    "s": 59.825,
    "l": 44.902
  },
  "oklch": {
    "l": 0.4806,
    "c": 0.20301,
    "h": 304.6
  },
  "luminance": 0.09438
}

Semantic roles & 50–950 ramp

primary
#792EB7
secondary
#9DC879
accent
#E3458C
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #792EB7

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

Preview Lab → · Contrast checker → · Palette generator →

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