#792CA8#792CA8

#792CA8 is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.7% C 0.190 H 309.1°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#792CA8
RGBrgb(121, 44, 168)
HSLhsl(277, 58%, 42%)
HSVhsv(277, 74%, 66%)
CMYKcmyk(28%, 73.8%, 0%, 34.1%)
CIE-LABlab(35.39, 53.73, -52.06)
CIE-LCHlch(35.39, 74.81, 315.90°)
OKLaboklab(46.7% 0.1201 -0.1476)
OKLCHoklch(46.7% 0.19 309.1)
XYZxyz(15.8523, 8.6938, 37.8812)
Luminance0.0869 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792CA8 #5BA82C
analogous
#3B2CA8 #792CA8 #A82C99
triadic
#792CA8 #A8792C #2CA879
tetradic
#792CA8 #A83B2C #5BA82C #2C99A8
square
#792CA8 #A83B2C #5BA82C #2C99A8
split-complementary
#792CA8 #99A82C #2CA83B
monochromatic
#331347 #561F78 #792CA8 #9943CE #B474DB

Accessibility & contrast

On white

7.67
#792CA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#792CA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792CA8
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792CA8#FFFFFF#000000##FFFFFF
##792CA81.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AC
Deuteranopia (green-blind)
#0954A5
Tritanopia (blue-blind)
#724968
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #792ca8;
/* rgb */ color: rgb(121, 44, 168);
/* oklch */ color: oklch(46.7% 0.190 309.1);
Tailwind
colors: {
  custom: {
    50: '#a46dc3',
    500: '#792ca8',
    950: '#000000',
  },
}
SCSS
$custom: #792ca8;
$custom-light: #a46dc3;
$custom-dark: #000000;
JSON
{
  "hex": "#792ca8",
  "rgb": {
    "r": 121,
    "g": 44,
    "b": 168
  },
  "hsl": {
    "h": 277.258,
    "s": 58.491,
    "l": 41.569
  },
  "oklch": {
    "l": 0.46697,
    "c": 0.19028,
    "h": 309.1
  },
  "luminance": 0.08693
}

Semantic roles & 50–950 ramp

primary
#792CA8
secondary
#8EC26E
accent
#E24681
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #792CA8

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

Preview Lab → · Contrast checker → · Palette generator →

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