#792FB4#792FB4

#792FB4 is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.9% C 0.199 H 305.3°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#792FB4
RGBrgb(121, 47, 180)
HSLhsl(273, 59%, 45%)
HSVhsv(273, 74%, 71%)
CMYKcmyk(32.8%, 73.9%, 0%, 29.4%)
CIE-LABlab(36.73, 55.18, -57.04)
CIE-LCHlch(36.73, 79.36, 314.05°)
OKLaboklab(47.93% 0.115 -0.1622)
OKLCHoklch(47.93% 0.199 305.3)
XYZxyz(17.1380, 9.3934, 44.0814)
Luminance0.0939 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792FB4 #6AB42F
analogous
#362FB4 #792FB4 #B42FAD
triadic
#792FB4 #B4792F #2FB479
tetradic
#792FB4 #B4362F #6AB42F #2FADB4
square
#792FB4 #B4362F #6AB42F #2FADB4
split-complementary
#792FB4 #ADB42F #2FB436
monochromatic
#381653 #582283 #792FB4 #974FD1 #B480DE

Accessibility & contrast

On white

7.30
#792FB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#792FB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792FB4
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792FB4#FFFFFF#000000##FFFFFF
##792FB41.007.302.887.30
#FFFFFF7.301.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B8
Deuteranopia (green-blind)
#0057B1
Tritanopia (blue-blind)
#6E4F6F
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #792fb4;
/* rgb */ color: rgb(121, 47, 180);
/* oklch */ color: oklch(47.9% 0.199 305.3);
Tailwind
colors: {
  custom: {
    50: '#a56fcb',
    500: '#792fb4',
    950: '#000000',
  },
}
SCSS
$custom: #792fb4;
$custom-light: #a56fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#792fb4",
  "rgb": {
    "r": 121,
    "g": 47,
    "b": 180
  },
  "hsl": {
    "h": 273.383,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.47929,
    "c": 0.19887,
    "h": 305.3
  },
  "luminance": 0.09393
}

Semantic roles & 50–950 ramp

primary
#792FB4
secondary
#9BC778
accent
#E2468B
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #792FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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