#792AB4#792AB4

#792AB4 is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.4% C 0.204 H 305.8°. Best body text is #FFFFFF at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#792AB4
RGBrgb(121, 42, 180)
HSLhsl(274, 62%, 44%)
HSVhsv(274, 77%, 71%)
CMYKcmyk(32.8%, 76.7%, 0%, 29.4%)
CIE-LABlab(36.02, 57.23, -58.20)
CIE-LCHlch(36.02, 81.62, 314.52°)
OKLaboklab(47.43% 0.1196 -0.1656)
OKLCHoklch(47.43% 0.204 305.8)
XYZxyz(16.9495, 9.0163, 44.0186)
Luminance0.0902 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792AB4 #65B42A
analogous
#342AB4 #792AB4 #B42AAA
triadic
#792AB4 #B4792A #2AB479
tetradic
#792AB4 #B4342A #65B42A #2AAAB4
square
#792AB4 #B4342A #65B42A #2AAAB4
split-complementary
#792AB4 #AAB42A #2AB434
monochromatic
#361351 #581E82 #792AB4 #9847D4 #B479E0

Accessibility & contrast

On white

7.49
#792AB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#792AB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792AB4
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792AB4#FFFFFF#000000##FFFFFF
##792AB41.007.492.807.49
#FFFFFF7.491.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B8
Deuteranopia (green-blind)
#0055B1
Tritanopia (blue-blind)
#6E4D6E
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #792ab4;
/* rgb */ color: rgb(121, 42, 180);
/* oklch */ color: oklch(47.4% 0.204 305.8);
Tailwind
colors: {
  custom: {
    50: '#a56ccb',
    500: '#792ab4',
    950: '#000000',
  },
}
SCSS
$custom: #792ab4;
$custom-light: #a56ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#792ab4",
  "rgb": {
    "r": 121,
    "g": 42,
    "b": 180
  },
  "hsl": {
    "h": 274.348,
    "s": 62.162,
    "l": 43.529
  },
  "oklch": {
    "l": 0.47425,
    "c": 0.20427,
    "h": 305.8
  },
  "luminance": 0.09016
}

Semantic roles & 50–950 ramp

primary
#792AB4
secondary
#97C872
accent
#E54388
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #792AB4

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

Preview Lab → · Contrast checker → · Palette generator →

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