#795A8A#795A8A

#795A8A is a mid, moderate violet. Relative luminance 0.132; OKLCH L 51.8% C 0.082 H 313.1°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#795A8A
RGBrgb(121, 90, 138)
HSLhsl(279, 21%, 45%)
HSVhsv(279, 35%, 54%)
CMYKcmyk(12.3%, 34.8%, 0%, 45.9%)
CIE-LABlab(43.08, 22.15, -21.80)
CIE-LCHlch(43.08, 31.08, 315.45°)
OKLaboklab(51.81% 0.0561 -0.0598)
OKLCHoklch(51.81% 0.082 313.1)
XYZxyz(16.1280, 13.2125, 25.7405)
Luminance0.1321 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795A8A #6B8A5A
analogous
#615A8A #795A8A #8A5A83
triadic
#795A8A #8A795A #5A8A79
tetradic
#795A8A #8A615A #6B8A5A #5A838A
square
#795A8A #8A615A #6B8A5A #5A838A
split-complementary
#795A8A #838A5A #5A8A61
monochromatic
#382A40 #594265 #795A8A #9779A8 #B49EC0

Accessibility & contrast

On white

5.77
#795A8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#795A8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795A8A
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795A8A#FFFFFF#000000##FFFFFF
##795A8A1.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#52648C
Deuteranopia (green-blind)
#596789
Tritanopia (blue-blind)
#78606C
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #795a8a;
/* rgb */ color: rgb(121, 90, 138);
/* oklch */ color: oklch(51.8% 0.082 313.1);
Tailwind
colors: {
  custom: {
    50: '#a089ac',
    500: '#795a8a',
    950: '#000000',
  },
}
SCSS
$custom: #795a8a;
$custom-light: #a089ac;
$custom-dark: #000000;
JSON
{
  "hex": "#795a8a",
  "rgb": {
    "r": 121,
    "g": 90,
    "b": 138
  },
  "hsl": {
    "h": 278.75,
    "s": 21.053,
    "l": 44.706
  },
  "oklch": {
    "l": 0.51812,
    "c": 0.08203,
    "h": 313.1
  },
  "luminance": 0.13212
}

Semantic roles & 50–950 ramp

primary
#795A8A
secondary
#9CAE92
accent
#BE6A88
background
#F9F8FA
surface
#F2F0F4
border
#CCCBCE
text
#0F0B10
muted
#7E7C7F

Preview Lab

Preview with #795A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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