#795DA2#795DA2

#795DA2 is a mid, moderate violet. Relative luminance 0.145; OKLCH L 53.6% C 0.109 H 301.5°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#795DA2
RGBrgb(121, 93, 162)
HSLhsl(264, 27%, 50%)
HSVhsv(264, 43%, 64%)
CMYKcmyk(25.3%, 42.6%, 0%, 36.5%)
CIE-LABlab(44.94, 26.13, -33.23)
CIE-LCHlch(44.94, 42.27, 308.18°)
OKLaboklab(53.59% 0.0569 -0.0927)
OKLCHoklch(53.59% 0.109 301.5)
XYZxyz(18.3197, 14.5023, 36.0095)
Luminance0.1450 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795DA2 #86A25D
analogous
#5D63A2 #795DA2 #9C5DA2
triadic
#795DA2 #A2795D #5DA279
tetradic
#795DA2 #A25D63 #86A25D #5DA29C
square
#795DA2 #A25D63 #86A25D #5DA29C
split-complementary
#795DA2 #A29C5D #63A25D
monochromatic
#3F3054 #5C477B #795DA2 #9984B8 #B9ABCF

Accessibility & contrast

On white

5.38
#795DA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#795DA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795DA2
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795DA2#FFFFFF#000000##FFFFFF
##795DA21.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B6AA5
Deuteranopia (green-blind)
#516AA0
Tritanopia (blue-blind)
#726978
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #795da2;
/* rgb */ color: rgb(121, 93, 162);
/* oklch */ color: oklch(53.6% 0.109 301.5);
Tailwind
colors: {
  custom: {
    50: '#a18bbe',
    500: '#795da2',
    950: '#000000',
  },
}
SCSS
$custom: #795da2;
$custom-light: #a18bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#795da2",
  "rgb": {
    "r": 121,
    "g": 93,
    "b": 162
  },
  "hsl": {
    "h": 264.348,
    "s": 27.059,
    "l": 50
  },
  "oklch": {
    "l": 0.5359,
    "c": 0.1088,
    "h": 301.5
  },
  "luminance": 0.14502
}

Semantic roles & 50–950 ramp

primary
#795DA2
secondary
#B0BD9E
accent
#C3649D
background
#FAF8FB
surface
#F3F0F6
border
#CDCBD0
text
#0F0C12
muted
#7F7D81

Preview Lab

Preview with #795DA2

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

Preview Lab → · Contrast checker → · Palette generator →

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