#795BAB#795BAB

#795BAB is a mid, vivid violet. Relative luminance 0.145; OKLCH L 53.7% C 0.124 H 299.5°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#795BAB
RGBrgb(121, 91, 171)
HSLhsl(263, 32%, 51%)
HSVhsv(263, 47%, 67%)
CMYKcmyk(29.2%, 46.8%, 0%, 32.9%)
CIE-LABlab(44.92, 29.62, -38.58)
CIE-LCHlch(44.92, 48.64, 307.52°)
OKLaboklab(53.73% 0.0613 -0.1083)
OKLCHoklch(53.73% 0.124 299.5)
XYZxyz(18.9752, 14.4873, 40.3168)
Luminance0.1449 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795BAB #8DAB5B
analogous
#5B65AB #795BAB #A15BAB
triadic
#795BAB #AB795B #5BAB79
tetradic
#795BAB #AB5B65 #8DAB5B #5BABA1
square
#795BAB #AB5B65 #8DAB5B #5BABA1
split-complementary
#795BAB #ABA15B #65AB5B
monochromatic
#402F5C #5C4485 #795BAB #9A83C0 #BBACD4

Accessibility & contrast

On white

5.39
#795BAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#795BAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795BAB
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795BAB#FFFFFF#000000##FFFFFF
##795BAB1.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#436AAE
Deuteranopia (green-blind)
#496AA9
Tritanopia (blue-blind)
#6F697B
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #795bab;
/* rgb */ color: rgb(121, 91, 171);
/* oklch */ color: oklch(53.7% 0.124 299.5);
Tailwind
colors: {
  custom: {
    50: '#a28ac4',
    500: '#795bab',
    950: '#000000',
  },
}
SCSS
$custom: #795bab;
$custom-light: #a28ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#795bab",
  "rgb": {
    "r": 121,
    "g": 91,
    "b": 171
  },
  "hsl": {
    "h": 262.5,
    "s": 32.258,
    "l": 51.373
  },
  "oklch": {
    "l": 0.53726,
    "c": 0.1244,
    "h": 299.5
  },
  "luminance": 0.14487
}

Semantic roles & 50–950 ramp

primary
#795BAB
secondary
#B5C39F
accent
#C85FA1
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#0F0B13
muted
#7F7C82

Preview Lab

Preview with #795BAB

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

Preview Lab → · Contrast checker → · Palette generator →

#795BAB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva