#795BA6#795BA6

#795BA6 is a mid, moderate violet. Relative luminance 0.143; OKLCH L 53.4% C 0.118 H 301.0°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#795BA6
RGBrgb(121, 91, 166)
HSLhsl(264, 30%, 50%)
HSVhsv(264, 45%, 65%)
CMYKcmyk(27.1%, 45.2%, 0%, 34.9%)
CIE-LABlab(44.66, 28.34, -36.04)
CIE-LCHlch(44.66, 45.85, 308.18°)
OKLaboklab(53.44% 0.0605 -0.1009)
OKLCHoklch(53.44% 0.118 301)
XYZxyz(18.5076, 14.3002, 37.8542)
Luminance0.1430 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795BA6 #88A65B
analogous
#5B62A6 #795BA6 #9E5BA6
triadic
#795BA6 #A6795B #5BA679
tetradic
#795BA6 #A65B62 #88A65B #5BA69E
square
#795BA6 #A65B62 #88A65B #5BA69E
split-complementary
#795BA6 #A69E5B #62A65B
monochromatic
#3F2F57 #5C457F #795BA6 #9983BC #BAAAD1

Accessibility & contrast

On white

5.44
#795BA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#795BA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795BA6
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795BA6#FFFFFF#000000##FFFFFF
##795BA61.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4669A9
Deuteranopia (green-blind)
#4D69A4
Tritanopia (blue-blind)
#716878
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #795ba6;
/* rgb */ color: rgb(121, 91, 166);
/* oklch */ color: oklch(53.4% 0.118 301.0);
Tailwind
colors: {
  custom: {
    50: '#a18ac1',
    500: '#795ba6',
    950: '#000000',
  },
}
SCSS
$custom: #795ba6;
$custom-light: #a18ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#795ba6",
  "rgb": {
    "r": 121,
    "g": 91,
    "b": 166
  },
  "hsl": {
    "h": 264,
    "s": 29.644,
    "l": 50.392
  },
  "oklch": {
    "l": 0.53442,
    "c": 0.11765,
    "h": 301
  },
  "luminance": 0.143
}

Semantic roles & 50–950 ramp

primary
#795BA6
secondary
#B2BF9E
accent
#C6629E
background
#FAF8FB
surface
#F4F0F7
border
#CECBD0
text
#0F0B12
muted
#7F7C81

Preview Lab

Preview with #795BA6

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

Preview Lab → · Contrast checker → · Palette generator →

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