#795BA2#795BA2

#795BA2 is a mid, moderate violet. Relative luminance 0.142; OKLCH L 53.2% C 0.112 H 302.2°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#795BA2
RGBrgb(121, 91, 162)
HSLhsl(265, 28%, 50%)
HSVhsv(265, 44%, 64%)
CMYKcmyk(25.3%, 43.8%, 0%, 36.5%)
CIE-LABlab(44.46, 27.32, -34.00)
CIE-LCHlch(44.46, 43.62, 308.79°)
OKLaboklab(53.22% 0.0599 -0.095)
OKLCHoklch(53.22% 0.112 302.2)
XYZxyz(18.1464, 14.1557, 35.9517)
Luminance0.1416 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795BA2 #84A25B
analogous
#5B61A2 #795BA2 #9D5BA2
triadic
#795BA2 #A2795B #5BA279
tetradic
#795BA2 #A25B61 #84A25B #5BA29D
square
#795BA2 #A25B61 #84A25B #5BA29D
split-complementary
#795BA2 #A29D5B #61A25B
monochromatic
#3E2F54 #5C457B #795BA2 #9982B9 #B9A9CF

Accessibility & contrast

On white

5.48
#795BA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#795BA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795BA2
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795BA2#FFFFFF#000000##FFFFFF
##795BA21.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4869A5
Deuteranopia (green-blind)
#4F69A0
Tritanopia (blue-blind)
#726777
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #795ba2;
/* rgb */ color: rgb(121, 91, 162);
/* oklch */ color: oklch(53.2% 0.112 302.2);
Tailwind
colors: {
  custom: {
    50: '#a18abe',
    500: '#795ba2',
    950: '#000000',
  },
}
SCSS
$custom: #795ba2;
$custom-light: #a18abe;
$custom-dark: #000000;
JSON
{
  "hex": "#795ba2",
  "rgb": {
    "r": 121,
    "g": 91,
    "b": 162
  },
  "hsl": {
    "h": 265.352,
    "s": 28.063,
    "l": 49.608
  },
  "oklch": {
    "l": 0.53221,
    "c": 0.11224,
    "h": 302.2
  },
  "luminance": 0.14156
}

Semantic roles & 50–950 ramp

primary
#795BA2
secondary
#AFBD9C
accent
#C4639B
background
#FAF8FB
surface
#F3F0F6
border
#CDCBD0
text
#0F0B12
muted
#7F7C81

Preview Lab

Preview with #795BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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