#792AB5#792AB5

#792AB5 is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.5% C 0.205 H 305.5°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#792AB5
RGBrgb(121, 42, 181)
HSLhsl(274, 62%, 44%)
HSVhsv(274, 77%, 71%)
CMYKcmyk(33.1%, 76.8%, 0%, 29%)
CIE-LABlab(36.09, 57.45, -58.67)
CIE-LCHlch(36.09, 82.11, 314.40°)
OKLaboklab(47.51% 0.1193 -0.167)
OKLCHoklch(47.51% 0.205 305.5)
XYZxyz(17.0517, 9.0572, 44.5570)
Luminance0.0906 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792AB5 #66B52A
analogous
#332AB5 #792AB5 #B52AAB
triadic
#792AB5 #B5792A #2AB579
tetradic
#792AB5 #B5332A #66B52A #2AABB5
square
#792AB5 #B5332A #66B52A #2AABB5
split-complementary
#792AB5 #ABB52A #2AB533
monochromatic
#371352 #581E83 #792AB5 #9848D4 #B479E0

Accessibility & contrast

On white

7.47
#792AB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#792AB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792AB5
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792AB5#FFFFFF#000000##FFFFFF
##792AB51.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B9
Deuteranopia (green-blind)
#0055B2
Tritanopia (blue-blind)
#6E4D6E
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #792ab5;
/* rgb */ color: rgb(121, 42, 181);
/* oklch */ color: oklch(47.5% 0.205 305.5);
Tailwind
colors: {
  custom: {
    50: '#a56ccc',
    500: '#792ab5',
    950: '#000000',
  },
}
SCSS
$custom: #792ab5;
$custom-light: #a56ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#792ab5",
  "rgb": {
    "r": 121,
    "g": 42,
    "b": 181
  },
  "hsl": {
    "h": 274.101,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.47505,
    "c": 0.20525,
    "h": 305.5
  },
  "luminance": 0.09057
}

Semantic roles & 50–950 ramp

primary
#792AB5
secondary
#98C873
accent
#E54289
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #792AB5

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

Preview Lab → · Contrast checker → · Palette generator →

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