#792DB9#792DB9

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

Color values

HEX#792DB9
RGBrgb(121, 45, 185)
HSLhsl(273, 61%, 45%)
HSVhsv(273, 76%, 73%)
CMYKcmyk(34.6%, 75.7%, 0%, 27.5%)
CIE-LABlab(36.83, 57.17, -59.84)
CIE-LCHlch(36.83, 82.76, 313.69°)
OKLaboklab(48.12% 0.1158 -0.1705)
OKLCHoklch(48.12% 0.206 304.2)
XYZxyz(17.5785, 9.4446, 46.7864)
Luminance0.0945 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792DB9 #6DB92D
analogous
#332DB9 #792DB9 #B92DB3
triadic
#792DB9 #B9792D #2DB979
tetradic
#792DB9 #B9332D #6DB92D #2DB3B9
square
#792DB9 #B9332D #6DB92D #2DB3B9
split-complementary
#792DB9 #B3B92D #2DB933
monochromatic
#391557 #592188 #792DB9 #974FD4 #B480E0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##792DB9#FFFFFF#000000##FFFFFF
##792DB91.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)
#0055BD
Deuteranopia (green-blind)
#0057B6
Tritanopia (blue-blind)
#6C5071
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #792db9;
/* rgb */ color: rgb(121, 45, 185);
/* oklch */ color: oklch(48.1% 0.206 304.2);
Tailwind
colors: {
  custom: {
    50: '#a56ecf',
    500: '#792db9',
    950: '#000000',
  },
}
SCSS
$custom: #792db9;
$custom-light: #a56ecf;
$custom-dark: #000000;
JSON
{
  "hex": "#792db9",
  "rgb": {
    "r": 121,
    "g": 45,
    "b": 185
  },
  "hsl": {
    "h": 272.571,
    "s": 60.87,
    "l": 45.098
  },
  "oklch": {
    "l": 0.48118,
    "c": 0.20607,
    "h": 304.2
  },
  "luminance": 0.09445
}

Semantic roles & 50–950 ramp

primary
#792DB9
secondary
#9DC979
accent
#E4448D
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #792DB9

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

Preview Lab → · Contrast checker → · Palette generator →

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