#795B97#795B97

#795B97 is a mid, moderate violet. Relative luminance 0.138; OKLCH L 52.6% C 0.097 H 306.3°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#795B97
RGBrgb(121, 91, 151)
HSLhsl(270, 25%, 47%)
HSVhsv(270, 40%, 59%)
CMYKcmyk(19.9%, 39.7%, 0%, 40.8%)
CIE-LABlab(43.92, 24.61, -28.30)
CIE-LCHlch(43.92, 37.50, 311.01°)
OKLaboklab(52.64% 0.0577 -0.0785)
OKLCHoklch(52.64% 0.097 306.3)
XYZxyz(17.2111, 13.7816, 31.0256)
Luminance0.1378 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795B97 #79975B
analogous
#5B5B97 #795B97 #975B97
triadic
#795B97 #97795B #5B9779
tetradic
#795B97 #975B5B #79975B #5B9797
square
#795B97 #975B5B #79975B #5B9797
split-complementary
#795B97 #97975B #5B975B
monochromatic
#3C2D4B #5A4471 #795B97 #987EB1 #B6A4C8

Accessibility & contrast

On white

5.59
#795B97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#795B97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795B97
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795B97#FFFFFF#000000##FFFFFF
##795B971.005.593.765.59
#FFFFFF5.591.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E6799
Deuteranopia (green-blind)
#546895
Tritanopia (blue-blind)
#756472
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #795b97;
/* rgb */ color: rgb(121, 91, 151);
/* oklch */ color: oklch(52.6% 0.097 306.3);
Tailwind
colors: {
  custom: {
    50: '#a18ab6',
    500: '#795b97',
    950: '#000000',
  },
}
SCSS
$custom: #795b97;
$custom-light: #a18ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#795b97",
  "rgb": {
    "r": 121,
    "g": 91,
    "b": 151
  },
  "hsl": {
    "h": 270,
    "s": 24.793,
    "l": 47.451
  },
  "oklch": {
    "l": 0.5264,
    "c": 0.0974,
    "h": 306.3
  },
  "luminance": 0.13781
}

Semantic roles & 50–950 ramp

primary
#795B97
secondary
#A7B698
accent
#C16794
background
#FAF8FB
surface
#F3F0F6
border
#CDCBD0
text
#0F0B11
muted
#7F7C80

Preview Lab

Preview with #795B97

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

Preview Lab → · Contrast checker → · Palette generator →

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