#792AB1#792AB1

#792AB1 is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 47.2% C 0.201 H 306.7°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#792AB1
RGBrgb(121, 42, 177)
HSLhsl(275, 62%, 43%)
HSVhsv(275, 76%, 69%)
CMYKcmyk(31.6%, 76.3%, 0%, 30.6%)
CIE-LABlab(35.78, 56.55, -56.80)
CIE-LCHlch(35.78, 80.15, 314.87°)
OKLaboklab(47.19% 0.1202 -0.1615)
OKLCHoklch(47.19% 0.201 306.7)
XYZxyz(16.6472, 8.8954, 42.4264)
Luminance0.0890 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792AB1 #62B12A
analogous
#352AB1 #792AB1 #B12AA5
triadic
#792AB1 #B1792A #2AB179
tetradic
#792AB1 #B1352A #62B12A #2AA5B1
square
#792AB1 #B1352A #62B12A #2AA5B1
split-complementary
#792AB1 #A5B12A #2AB135
monochromatic
#35134E #571E80 #792AB1 #9845D3 #B477DF

Accessibility & contrast

On white

7.56
#792AB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#792AB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792AB1
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792AB1#FFFFFF#000000##FFFFFF
##792AB11.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B5
Deuteranopia (green-blind)
#0055AE
Tritanopia (blue-blind)
#6F4C6C
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #792ab1;
/* rgb */ color: rgb(121, 42, 177);
/* oklch */ color: oklch(47.2% 0.201 306.7);
Tailwind
colors: {
  custom: {
    50: '#a56cc9',
    500: '#792ab1',
    950: '#000000',
  },
}
SCSS
$custom: #792ab1;
$custom-light: #a56cc9;
$custom-dark: #000000;
JSON
{
  "hex": "#792ab1",
  "rgb": {
    "r": 121,
    "g": 42,
    "b": 177
  },
  "hsl": {
    "h": 275.111,
    "s": 61.644,
    "l": 42.941
  },
  "oklch": {
    "l": 0.47188,
    "c": 0.20134,
    "h": 306.7
  },
  "luminance": 0.08895
}

Semantic roles & 50–950 ramp

primary
#792AB1
secondary
#94C670
accent
#E54386
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #792AB1

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

Preview Lab → · Contrast checker → · Palette generator →

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