#795DB4#795DB4

#795DB4 is a mid, vivid violet. Relative luminance 0.152; OKLCH L 54.6% C 0.133 H 296.6°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#795DB4
RGBrgb(121, 93, 180)
HSLhsl(259, 37%, 54%)
HSVhsv(259, 48%, 71%)
CMYKcmyk(32.8%, 48.3%, 0%, 29.4%)
CIE-LABlab(45.89, 30.80, -42.32)
CIE-LCHlch(45.89, 52.34, 306.05°)
OKLaboklab(54.61% 0.0596 -0.1192)
OKLCHoklch(54.61% 0.133 296.6)
XYZxyz(20.0357, 15.1887, 45.0473)
Luminance0.1519 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795DB4 #98B45D
analogous
#5D6CB4 #795DB4 #A45DB4
triadic
#795DB4 #B4795D #5DB479
tetradic
#795DB4 #B45D6C #98B45D #5DB4A4
square
#795DB4 #B45D6C #98B45D #5DB4A4
split-complementary
#795DB4 #B4A45D #6CB45D
monochromatic
#413067 #5C4391 #795DB4 #9C87C7 #BEB1DB

Accessibility & contrast

On white

5.20
#795DB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#795DB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795DB4
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795DB4#FFFFFF#000000##FFFFFF
##795DB41.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#406DB7
Deuteranopia (green-blind)
#466CB2
Tritanopia (blue-blind)
#6C6D80
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #795db4;
/* rgb */ color: rgb(121, 93, 180);
/* oklch */ color: oklch(54.6% 0.133 296.6);
Tailwind
colors: {
  custom: {
    50: '#a28bcb',
    500: '#795db4',
    950: '#000000',
  },
}
SCSS
$custom: #795db4;
$custom-light: #a28bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#795db4",
  "rgb": {
    "r": 121,
    "g": 93,
    "b": 180
  },
  "hsl": {
    "h": 259.31,
    "s": 36.709,
    "l": 53.529
  },
  "oklch": {
    "l": 0.5461,
    "c": 0.13327,
    "h": 296.6
  },
  "luminance": 0.15189
}

Semantic roles & 50–950 ramp

primary
#795DB4
secondary
#BDC9A4
accent
#CD5BA8
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#0F0C13
muted
#7F7D82

Preview Lab

Preview with #795DB4

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

Preview Lab → · Contrast checker → · Palette generator →

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