#791BA8#791BA8

#791BA8 is a mid, highly saturated purple. Relative luminance 0.077; OKLCH L 45.2% C 0.207 H 310.4°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#791BA8
RGBrgb(121, 27, 168)
HSLhsl(280, 72%, 38%)
HSVhsv(280, 84%, 66%)
CMYKcmyk(28%, 83.9%, 0%, 34.1%)
CIE-LABlab(33.30, 59.75, -55.46)
CIE-LCHlch(33.30, 81.52, 317.14°)
OKLaboklab(45.23% 0.1342 -0.1575)
OKLCHoklch(45.23% 0.207 310.4)
XYZxyz(15.3436, 7.6763, 37.7116)
Luminance0.0768 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791BA8 #4AA81B
analogous
#321BA8 #791BA8 #A81B90
triadic
#791BA8 #A8791B #1BA879
tetradic
#791BA8 #A8321B #4AA81B #1B90A8
square
#791BA8 #A8321B #4AA81B #1B90A8
split-complementary
#791BA8 #90A81B #1BA832
monochromatic
#2D0A3F #531373 #791BA8 #9F24DC #B659E4

Accessibility & contrast

On white

8.28
#791BA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#791BA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791BA8
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791BA8#FFFFFF#000000##FFFFFF
##791BA81.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAC
Deuteranopia (green-blind)
#0050A5
Tritanopia (blue-blind)
#724164
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #791ba8;
/* rgb */ color: rgb(121, 27, 168);
/* oklch */ color: oklch(45.2% 0.207 310.4);
Tailwind
colors: {
  custom: {
    50: '#a565c3',
    500: '#791ba8',
    950: '#000000',
  },
}
SCSS
$custom: #791ba8;
$custom-light: #a565c3;
$custom-dark: #000000;
JSON
{
  "hex": "#791ba8",
  "rgb": {
    "r": 121,
    "g": 27,
    "b": 168
  },
  "hsl": {
    "h": 280,
    "s": 72.308,
    "l": 38.235
  },
  "oklch": {
    "l": 0.45231,
    "c": 0.20692,
    "h": 310.4
  },
  "luminance": 0.07676
}

Semantic roles & 50–950 ramp

primary
#791BA8
secondary
#7DC857
accent
#EF3976
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100613
muted
#7F7A82

Preview Lab

Preview with #791BA8

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

Preview Lab → · Contrast checker → · Palette generator →

#791BA8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva