#795C97#795C97

#795C97 is a mid, moderate violet. Relative luminance 0.140; OKLCH L 52.8% C 0.096 H 306.0°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#795C97
RGBrgb(121, 92, 151)
HSLhsl(269, 24%, 48%)
HSVhsv(269, 39%, 59%)
CMYKcmyk(19.9%, 39.1%, 0%, 40.8%)
CIE-LABlab(44.17, 24.01, -27.91)
CIE-LCHlch(44.17, 36.82, 310.70°)
OKLaboklab(52.83% 0.0562 -0.0774)
OKLCHoklch(52.83% 0.096 306)
XYZxyz(17.2971, 13.9537, 31.0543)
Luminance0.1395 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795C97 #7A975C
analogous
#5C5C97 #795C97 #975C97
triadic
#795C97 #97795C #5C9779
tetradic
#795C97 #975C5C #7A975C #5C9797
square
#795C97 #975C5C #7A975C #5C9797
split-complementary
#795C97 #97975C #5C975C
monochromatic
#3C2E4B #5B4571 #795C97 #987FB1 #B6A5C8

Accessibility & contrast

On white

5.54
#795C97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#795C97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795C97
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795C97#FFFFFF#000000##FFFFFF
##795C971.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F6799
Deuteranopia (green-blind)
#556995
Tritanopia (blue-blind)
#756572
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #795c97;
/* rgb */ color: rgb(121, 92, 151);
/* oklch */ color: oklch(52.8% 0.096 306.0);
Tailwind
colors: {
  custom: {
    50: '#a18ab6',
    500: '#795c97',
    950: '#000000',
  },
}
SCSS
$custom: #795c97;
$custom-light: #a18ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#795c97",
  "rgb": {
    "r": 121,
    "g": 92,
    "b": 151
  },
  "hsl": {
    "h": 269.492,
    "s": 24.28,
    "l": 47.647
  },
  "oklch": {
    "l": 0.52828,
    "c": 0.0956,
    "h": 306
  },
  "luminance": 0.13954
}

Semantic roles & 50–950 ramp

primary
#795C97
secondary
#A8B699
accent
#C16795
background
#FAF8FB
surface
#F3F0F6
border
#CDCBD0
text
#0F0C11
muted
#7F7D80

Preview Lab

Preview with #795C97

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

Preview Lab → · Contrast checker → · Palette generator →

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