#795DAA#795DAA

#795DAA is a mid, moderate violet. Relative luminance 0.148; OKLCH L 54.0% C 0.120 H 299.1°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#795DAA
RGBrgb(121, 93, 170)
HSLhsl(262, 31%, 52%)
HSVhsv(262, 45%, 67%)
CMYKcmyk(28.8%, 45.3%, 0%, 33.3%)
CIE-LABlab(45.35, 28.17, -37.31)
CIE-LCHlch(45.35, 46.75, 307.06°)
OKLaboklab(54.03% 0.0583 -0.1046)
OKLCHoklch(54.03% 0.12 299.1)
XYZxyz(19.0535, 14.7958, 39.8745)
Luminance0.1480 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795DAA #8EAA5D
analogous
#5D68AA #795DAA #A05DAA
triadic
#795DAA #AA795D #5DAA79
tetradic
#795DAA #AA5D68 #8EAA5D #5DAAA0
square
#795DAA #AA5D68 #8EAA5D #5DAAA0
split-complementary
#795DAA #AAA05D #68AA5D
monochromatic
#40305C #5C4584 #795DAA #9A85BF #BBADD4

Accessibility & contrast

On white

5.30
#795DAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#795DAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795DAA
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795DAA#FFFFFF#000000##FFFFFF
##795DAA1.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#466BAD
Deuteranopia (green-blind)
#4C6BA8
Tritanopia (blue-blind)
#6F6B7B
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #795daa;
/* rgb */ color: rgb(121, 93, 170);
/* oklch */ color: oklch(54.0% 0.120 299.1);
Tailwind
colors: {
  custom: {
    50: '#a28bc3',
    500: '#795daa',
    950: '#000000',
  },
}
SCSS
$custom: #795daa;
$custom-light: #a28bc3;
$custom-dark: #000000;
JSON
{
  "hex": "#795daa",
  "rgb": {
    "r": 121,
    "g": 93,
    "b": 170
  },
  "hsl": {
    "h": 261.818,
    "s": 31.174,
    "l": 51.569
  },
  "oklch": {
    "l": 0.54031,
    "c": 0.11971,
    "h": 299.1
  },
  "luminance": 0.14796
}

Semantic roles & 50–950 ramp

primary
#795DAA
secondary
#B6C2A0
accent
#C760A2
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#0F0C12
muted
#7F7D81

Preview Lab

Preview with #795DAA

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

Preview Lab → · Contrast checker → · Palette generator →

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