#795BAE#795BAE

#795BAE is a mid, vivid violet. Relative luminance 0.146; OKLCH L 53.9% C 0.128 H 298.7°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#795BAE
RGBrgb(121, 91, 174)
HSLhsl(262, 34%, 52%)
HSVhsv(262, 48%, 68%)
CMYKcmyk(30.5%, 47.7%, 0%, 31.8%)
CIE-LABlab(45.09, 30.40, -40.08)
CIE-LCHlch(45.09, 50.31, 307.18°)
OKLaboklab(53.9% 0.0617 -0.1126)
OKLCHoklch(53.9% 0.128 298.7)
XYZxyz(19.2644, 14.6029, 41.8399)
Luminance0.1460 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795BAE #90AE5B
analogous
#5B66AE #795BAE #A35BAE
triadic
#795BAE #AE795B #5BAE79
tetradic
#795BAE #AE5B66 #90AE5B #5BAEA3
square
#795BAE #AE5B66 #90AE5B #5BAEA3
split-complementary
#795BAE #AEA35B #66AE5B
monochromatic
#412F5F #5C4388 #795BAE #9A84C2 #BCADD6

Accessibility & contrast

On white

5.36
#795BAE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#795BAE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795BAE
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795BAE#FFFFFF#000000##FFFFFF
##795BAE1.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#416BB1
Deuteranopia (green-blind)
#476AAC
Tritanopia (blue-blind)
#6E6A7C
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #795bae;
/* rgb */ color: rgb(121, 91, 174);
/* oklch */ color: oklch(53.9% 0.128 298.7);
Tailwind
colors: {
  custom: {
    50: '#a28ac6',
    500: '#795bae',
    950: '#000000',
  },
}
SCSS
$custom: #795bae;
$custom-light: #a28ac6;
$custom-dark: #000000;
JSON
{
  "hex": "#795bae",
  "rgb": {
    "r": 121,
    "g": 91,
    "b": 174
  },
  "hsl": {
    "h": 261.687,
    "s": 33.878,
    "l": 51.961
  },
  "oklch": {
    "l": 0.539,
    "c": 0.12842,
    "h": 298.7
  },
  "luminance": 0.14603
}

Semantic roles & 50–950 ramp

primary
#795BAE
secondary
#B7C5A0
accent
#CA5EA3
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#0F0C13
muted
#7F7D82

Preview Lab

Preview with #795BAE

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

Preview Lab → · Contrast checker → · Palette generator →

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