#795F97#795F97

#795F97 is a mid, moderate violet. Relative luminance 0.145; OKLCH L 53.4% C 0.090 H 304.9°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#795F97
RGBrgb(121, 95, 151)
HSLhsl(268, 23%, 48%)
HSVhsv(268, 37%, 59%)
CMYKcmyk(19.9%, 37.1%, 0%, 40.8%)
CIE-LABlab(44.92, 22.20, -26.74)
CIE-LCHlch(44.92, 34.76, 309.70°)
OKLaboklab(53.4% 0.0516 -0.074)
OKLCHoklch(53.4% 0.09 304.9)
XYZxyz(17.5622, 14.4838, 31.1426)
Luminance0.1448 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795F97 #7D975F
analogous
#5F6197 #795F97 #955F97
triadic
#795F97 #97795F #5F9779
tetradic
#795F97 #975F61 #7D975F #5F9795
square
#795F97 #975F61 #7D975F #5F9795
split-complementary
#795F97 #97955F #61975F
monochromatic
#3D304C #5B4771 #795F97 #9883B1 #B7A8C8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##795F97#FFFFFF#000000##FFFFFF
##795F971.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)
#536999
Deuteranopia (green-blind)
#586A95
Tritanopia (blue-blind)
#746874
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #795f97;
/* rgb */ color: rgb(121, 95, 151);
/* oklch */ color: oklch(53.4% 0.090 304.9);
Tailwind
colors: {
  custom: {
    50: '#a08cb6',
    500: '#795f97',
    950: '#000000',
  },
}
SCSS
$custom: #795f97;
$custom-light: #a08cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#795f97",
  "rgb": {
    "r": 121,
    "g": 95,
    "b": 151
  },
  "hsl": {
    "h": 267.857,
    "s": 22.764,
    "l": 48.235
  },
  "oklch": {
    "l": 0.53399,
    "c": 0.0902,
    "h": 304.9
  },
  "luminance": 0.14484
}

Semantic roles & 50–950 ramp

primary
#795F97
secondary
#AAB79B
accent
#BF6997
background
#F9F8FB
surface
#F2F0F6
border
#CCCBD0
text
#0F0C11
muted
#7E7D80

Preview Lab

Preview with #795F97

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

Preview Lab → · Contrast checker → · Palette generator →

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