#795F9D#795F9D

#795F9D is a mid, moderate violet. Relative luminance 0.147; OKLCH L 53.7% C 0.098 H 302.5°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#795F9D
RGBrgb(121, 95, 157)
HSLhsl(265, 25%, 49%)
HSVhsv(265, 39%, 62%)
CMYKcmyk(22.9%, 39.5%, 0%, 38.4%)
CIE-LABlab(45.20, 23.68, -29.87)
CIE-LCHlch(45.20, 38.12, 308.40°)
OKLaboklab(53.7% 0.0529 -0.083)
OKLCHoklch(53.7% 0.098 302.5)
XYZxyz(18.0619, 14.6837, 33.7744)
Luminance0.1468 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795F9D #839D5F
analogous
#5F649D #795F9D #985F9D
triadic
#795F9D #9D795F #5F9D79
tetradic
#795F9D #9D5F64 #839D5F #5F9D98
square
#795F9D #9D5F64 #839D5F #5F9D98
split-complementary
#795F9D #9D985F #649D5F
monochromatic
#3E3151 #5C4877 #795F9D #9984B5 #B9ABCC

Accessibility & contrast

On white

5.33
#795F9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#795F9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795F9D
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795F9D#FFFFFF#000000##FFFFFF
##795F9D1.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#506A9F
Deuteranopia (green-blind)
#556B9B
Tritanopia (blue-blind)
#736976
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #795f9d;
/* rgb */ color: rgb(121, 95, 157);
/* oklch */ color: oklch(53.7% 0.098 302.5);
Tailwind
colors: {
  custom: {
    50: '#a18cba',
    500: '#795f9d',
    950: '#000000',
  },
}
SCSS
$custom: #795f9d;
$custom-light: #a18cba;
$custom-dark: #000000;
JSON
{
  "hex": "#795f9d",
  "rgb": {
    "r": 121,
    "g": 95,
    "b": 157
  },
  "hsl": {
    "h": 265.161,
    "s": 24.603,
    "l": 49.412
  },
  "oklch": {
    "l": 0.53702,
    "c": 0.09846,
    "h": 302.5
  },
  "luminance": 0.14684
}

Semantic roles & 50–950 ramp

primary
#795F9D
secondary
#AEBA9E
accent
#C1679B
background
#FAF8FB
surface
#F3F0F6
border
#CDCBD0
text
#0F0C11
muted
#7F7D80

Preview Lab

Preview with #795F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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