#795B9F#795B9F

#795B9F is a mid, moderate violet. Relative luminance 0.141; OKLCH L 53.1% C 0.108 H 303.2°. Best body text is #FFFFFF at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#795B9F
RGBrgb(121, 91, 159)
HSLhsl(266, 27%, 49%)
HSVhsv(266, 43%, 62%)
CMYKcmyk(23.9%, 42.8%, 0%, 37.6%)
CIE-LABlab(44.30, 26.57, -32.46)
CIE-LCHlch(44.30, 41.95, 309.31°)
OKLaboklab(53.06% 0.0593 -0.0905)
OKLCHoklch(53.06% 0.108 303.2)
XYZxyz(17.8829, 14.0503, 34.5640)
Luminance0.1405 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795B9F #819F5B
analogous
#5B5F9F #795B9F #9B5B9F
triadic
#795B9F #9F795B #5B9F79
tetradic
#795B9F #9F5B5F #819F5B #5B9F9B
square
#795B9F #9F5B5F #819F5B #5B9F9B
split-complementary
#795B9F #9F9B5B #5F9F5B
monochromatic
#3E2E51 #5B4578 #795B9F #9881B7 #B8A7CD

Accessibility & contrast

On white

5.51
#795B9F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#795B9F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795B9F
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795B9F#FFFFFF#000000##FFFFFF
##795B9F1.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A68A2
Deuteranopia (green-blind)
#50699D
Tritanopia (blue-blind)
#736675
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #795b9f;
/* rgb */ color: rgb(121, 91, 159);
/* oklch */ color: oklch(53.1% 0.108 303.2);
Tailwind
colors: {
  custom: {
    50: '#a18abb',
    500: '#795b9f',
    950: '#000000',
  },
}
SCSS
$custom: #795b9f;
$custom-light: #a18abb;
$custom-dark: #000000;
JSON
{
  "hex": "#795b9f",
  "rgb": {
    "r": 121,
    "g": 91,
    "b": 159
  },
  "hsl": {
    "h": 266.471,
    "s": 27.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.53059,
    "c": 0.10819,
    "h": 303.2
  },
  "luminance": 0.1405
}

Semantic roles & 50–950 ramp

primary
#795B9F
secondary
#ADBB9B
accent
#C4649A
background
#FAF8FB
surface
#F3F0F6
border
#CDCBD0
text
#0F0B12
muted
#7F7C81

Preview Lab

Preview with #795B9F

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

Preview Lab → · Contrast checker → · Palette generator →

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