#792DB8#792DB8

#792DB8 is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 48.0% C 0.205 H 304.5°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#792DB8
RGBrgb(121, 45, 184)
HSLhsl(273, 61%, 45%)
HSVhsv(273, 76%, 72%)
CMYKcmyk(34.2%, 75.5%, 0%, 27.8%)
CIE-LABlab(36.75, 56.94, -59.38)
CIE-LCHlch(36.75, 82.27, 313.80°)
OKLaboklab(48.04% 0.116 -0.1691)
OKLCHoklch(48.04% 0.205 304.5)
XYZxyz(17.4733, 9.4025, 46.2324)
Luminance0.0940 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792DB8 #6CB82D
analogous
#342DB8 #792DB8 #B82DB1
triadic
#792DB8 #B8792D #2DB879
tetradic
#792DB8 #B8342D #6CB82D #2DB1B8
square
#792DB8 #B8342D #6CB82D #2DB1B8
split-complementary
#792DB8 #B1B82D #2DB834
monochromatic
#381556 #592187 #792DB8 #974ED4 #B480E0

Accessibility & contrast

On white

7.29
#792DB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #792DB8
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792DB8#FFFFFF#000000##FFFFFF
##792DB81.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BC
Deuteranopia (green-blind)
#0056B5
Tritanopia (blue-blind)
#6D5071
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #792db8;
/* rgb */ color: rgb(121, 45, 184);
/* oklch */ color: oklch(48.0% 0.205 304.5);
Tailwind
colors: {
  custom: {
    50: '#a56ece',
    500: '#792db8',
    950: '#000000',
  },
}
SCSS
$custom: #792db8;
$custom-light: #a56ece;
$custom-dark: #000000;
JSON
{
  "hex": "#792db8",
  "rgb": {
    "r": 121,
    "g": 45,
    "b": 184
  },
  "hsl": {
    "h": 272.806,
    "s": 60.699,
    "l": 44.902
  },
  "oklch": {
    "l": 0.48038,
    "c": 0.20508,
    "h": 304.5
  },
  "luminance": 0.09402
}

Semantic roles & 50–950 ramp

primary
#792DB8
secondary
#9DC978
accent
#E4448C
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #792DB8

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

Preview Lab → · Contrast checker → · Palette generator →

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