#792DB5#792DB5

#792DB5 is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 47.8% C 0.202 H 305.3°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#792DB5
RGBrgb(121, 45, 181)
HSLhsl(274, 60%, 44%)
HSVhsv(274, 75%, 71%)
CMYKcmyk(33.1%, 75.1%, 0%, 29%)
CIE-LABlab(36.51, 56.25, -57.98)
CIE-LCHlch(36.51, 80.79, 314.13°)
OKLaboklab(47.8% 0.1167 -0.165)
OKLCHoklch(47.8% 0.202 305.3)
XYZxyz(17.1622, 9.2780, 44.5938)
Luminance0.0928 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792DB5 #69B52D
analogous
#352DB5 #792DB5 #B52DAD
triadic
#792DB5 #B5792D #2DB579
tetradic
#792DB5 #B5352D #69B52D #2DADB5
square
#792DB5 #B5352D #69B52D #2DADB5
split-complementary
#792DB5 #ADB52D #2DB535
monochromatic
#371553 #582184 #792DB5 #974DD3 #B47EDF

Accessibility & contrast

On white

7.35
#792DB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#792DB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792DB5
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792DB5#FFFFFF#000000##FFFFFF
##792DB51.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B9
Deuteranopia (green-blind)
#0056B2
Tritanopia (blue-blind)
#6E4F6F
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #792db5;
/* rgb */ color: rgb(121, 45, 181);
/* oklch */ color: oklch(47.8% 0.202 305.3);
Tailwind
colors: {
  custom: {
    50: '#a56ecc',
    500: '#792db5',
    950: '#000000',
  },
}
SCSS
$custom: #792db5;
$custom-light: #a56ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#792db5",
  "rgb": {
    "r": 121,
    "g": 45,
    "b": 181
  },
  "hsl": {
    "h": 273.529,
    "s": 60.177,
    "l": 44.314
  },
  "oklch": {
    "l": 0.478,
    "c": 0.20208,
    "h": 305.3
  },
  "luminance": 0.09278
}

Semantic roles & 50–950 ramp

primary
#792DB5
secondary
#9AC776
accent
#E3448B
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #792DB5

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

Preview Lab → · Contrast checker → · Palette generator →

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