#795B8A#795B8A

#795B8A is a mid, moderate violet. Relative luminance 0.134; OKLCH L 52.0% C 0.080 H 312.8°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#795B8A
RGBrgb(121, 91, 138)
HSLhsl(278, 21%, 45%)
HSVhsv(278, 34%, 54%)
CMYKcmyk(12.3%, 34.1%, 0%, 45.9%)
CIE-LABlab(43.33, 21.55, -21.41)
CIE-LCHlch(43.33, 30.38, 315.18°)
OKLaboklab(52% 0.0545 -0.0587)
OKLCHoklch(52% 0.08 312.8)
XYZxyz(16.2129, 13.3824, 25.7688)
Luminance0.1338 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795B8A #6C8A5B
analogous
#625B8A #795B8A #8A5B84
triadic
#795B8A #8A795B #5B8A79
tetradic
#795B8A #8A625B #6C8A5B #5B848A
square
#795B8A #8A625B #6C8A5B #5B848A
split-complementary
#795B8A #848A5B #5B8A62
monochromatic
#382A40 #594365 #795B8A #977BA8 #B49FC0

Accessibility & contrast

On white

5.71
#795B8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#795B8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795B8A
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795B8A#FFFFFF#000000##FFFFFF
##795B8A1.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#53658C
Deuteranopia (green-blind)
#5A6789
Tritanopia (blue-blind)
#78616C
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #795b8a;
/* rgb */ color: rgb(121, 91, 138);
/* oklch */ color: oklch(52.0% 0.080 312.8);
Tailwind
colors: {
  custom: {
    50: '#a089ac',
    500: '#795b8a',
    950: '#000000',
  },
}
SCSS
$custom: #795b8a;
$custom-light: #a089ac;
$custom-dark: #000000;
JSON
{
  "hex": "#795b8a",
  "rgb": {
    "r": 121,
    "g": 91,
    "b": 138
  },
  "hsl": {
    "h": 278.298,
    "s": 20.524,
    "l": 44.902
  },
  "oklch": {
    "l": 0.52004,
    "c": 0.08013,
    "h": 312.8
  },
  "luminance": 0.13382
}

Semantic roles & 50–950 ramp

primary
#795B8A
secondary
#9DAE93
accent
#BD6B89
background
#F9F8FA
surface
#F2F0F4
border
#CCCBCE
text
#0F0B10
muted
#7E7C7F

Preview Lab

Preview with #795B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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