#791BA6#791BA6

#791BA6 is a mid, highly saturated purple. Relative luminance 0.076; OKLCH L 45.1% C 0.205 H 311.1°. Best body text is #FFFFFF at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#791BA6
RGBrgb(121, 27, 166)
HSLhsl(281, 72%, 38%)
HSVhsv(281, 84%, 65%)
CMYKcmyk(27.1%, 83.7%, 0%, 34.9%)
CIE-LABlab(33.14, 59.34, -54.51)
CIE-LCHlch(33.14, 80.57, 317.43°)
OKLaboklab(45.07% 0.1348 -0.1547)
OKLCHoklch(45.07% 0.205 311.1)
XYZxyz(15.1587, 7.6024, 36.7379)
Luminance0.0760 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791BA6 #48A61B
analogous
#341BA6 #791BA6 #A61B8D
triadic
#791BA6 #A6791B #1BA679
tetradic
#791BA6 #A6341B #48A61B #1B8DA6
square
#791BA6 #A6341B #48A61B #1B8DA6
split-complementary
#791BA6 #8DA61B #1BA634
monochromatic
#2C0A3D #531271 #791BA6 #9F24DB #B658E4

Accessibility & contrast

On white

8.33
#791BA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#791BA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791BA6
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791BA6#FFFFFF#000000##FFFFFF
##791BA61.008.332.528.33
#FFFFFF8.331.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAA
Deuteranopia (green-blind)
#004FA3
Tritanopia (blue-blind)
#734063
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #791ba6;
/* rgb */ color: rgb(121, 27, 166);
/* oklch */ color: oklch(45.1% 0.205 311.1);
Tailwind
colors: {
  custom: {
    50: '#a565c1',
    500: '#791ba6',
    950: '#000000',
  },
}
SCSS
$custom: #791ba6;
$custom-light: #a565c1;
$custom-dark: #000000;
JSON
{
  "hex": "#791ba6",
  "rgb": {
    "r": 121,
    "g": 27,
    "b": 166
  },
  "hsl": {
    "h": 280.576,
    "s": 72.021,
    "l": 37.843
  },
  "oklch": {
    "l": 0.45071,
    "c": 0.20515,
    "h": 311.1
  },
  "luminance": 0.07602
}

Semantic roles & 50–950 ramp

primary
#791BA6
secondary
#7AC756
accent
#EF3974
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100612
muted
#7F7A81

Preview Lab

Preview with #791BA6

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

Preview Lab → · Contrast checker → · Palette generator →

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