#795D9F#795D9F

#795D9F is a mid, moderate violet. Relative luminance 0.144; OKLCH L 53.4% C 0.105 H 302.6°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#795D9F
RGBrgb(121, 93, 159)
HSLhsl(265, 26%, 49%)
HSVhsv(265, 42%, 62%)
CMYKcmyk(23.9%, 41.5%, 0%, 37.6%)
CIE-LABlab(44.80, 25.38, -31.69)
CIE-LCHlch(44.80, 40.59, 308.69°)
OKLaboklab(53.43% 0.0564 -0.0882)
OKLCHoklch(53.43% 0.105 302.6)
XYZxyz(18.0562, 14.3969, 34.6218)
Luminance0.1440 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795D9F #839F5D
analogous
#5D629F #795D9F #9A5D9F
triadic
#795D9F #9F795D #5D9F79
tetradic
#795D9F #9F5D62 #839F5D #5D9F9A
square
#795D9F #9F5D62 #839F5D #5D9F9A
split-complementary
#795D9F #9F9A5D #629F5D
monochromatic
#3E3052 #5C4678 #795D9F #9983B6 #B9A9CD

Accessibility & contrast

On white

5.41
#795D9F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#795D9F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795D9F
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795D9F#FFFFFF#000000##FFFFFF
##795D9F1.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D69A1
Deuteranopia (green-blind)
#526A9D
Tritanopia (blue-blind)
#726876
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #795d9f;
/* rgb */ color: rgb(121, 93, 159);
/* oklch */ color: oklch(53.4% 0.105 302.6);
Tailwind
colors: {
  custom: {
    50: '#a18bbb',
    500: '#795d9f',
    950: '#000000',
  },
}
SCSS
$custom: #795d9f;
$custom-light: #a18bbb;
$custom-dark: #000000;
JSON
{
  "hex": "#795d9f",
  "rgb": {
    "r": 121,
    "g": 93,
    "b": 159
  },
  "hsl": {
    "h": 265.455,
    "s": 26.19,
    "l": 49.412
  },
  "oklch": {
    "l": 0.5343,
    "c": 0.10471,
    "h": 302.6
  },
  "luminance": 0.14397
}

Semantic roles & 50–950 ramp

primary
#795D9F
secondary
#AEBB9D
accent
#C3659B
background
#FAF8FB
surface
#F3F0F6
border
#CDCBD0
text
#0F0C12
muted
#7F7D81

Preview Lab

Preview with #795D9F

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

Preview Lab → · Contrast checker → · Palette generator →

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