#795DB3#795DB3

#795DB3 is a mid, vivid violet. Relative luminance 0.151; OKLCH L 54.6% C 0.132 H 296.8°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#795DB3
RGBrgb(121, 93, 179)
HSLhsl(260, 36%, 53%)
HSVhsv(260, 48%, 70%)
CMYKcmyk(32.4%, 48%, 0%, 29.8%)
CIE-LABlab(45.84, 30.53, -41.82)
CIE-LCHlch(45.84, 51.78, 306.13°)
OKLaboklab(54.55% 0.0595 -0.1177)
OKLCHoklch(54.55% 0.132 296.8)
XYZxyz(19.9342, 15.1481, 44.5127)
Luminance0.1515 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795DB3 #97B35D
analogous
#5D6CB3 #795DB3 #A45DB3
triadic
#795DB3 #B3795D #5DB379
tetradic
#795DB3 #B35D6C #97B35D #5DB3A4
square
#795DB3 #B35D6C #97B35D #5DB3A4
split-complementary
#795DB3 #B3A45D #6CB35D
monochromatic
#413066 #5C438F #795DB3 #9B87C7 #BEB0DA

Accessibility & contrast

On white

5.21
#795DB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#795DB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795DB3
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795DB3#FFFFFF#000000##FFFFFF
##795DB31.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#406DB6
Deuteranopia (green-blind)
#466CB1
Tritanopia (blue-blind)
#6C6D7F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #795db3;
/* rgb */ color: rgb(121, 93, 179);
/* oklch */ color: oklch(54.6% 0.132 296.8);
Tailwind
colors: {
  custom: {
    50: '#a28bca',
    500: '#795db3',
    950: '#000000',
  },
}
SCSS
$custom: #795db3;
$custom-light: #a28bca;
$custom-dark: #000000;
JSON
{
  "hex": "#795db3",
  "rgb": {
    "r": 121,
    "g": 93,
    "b": 179
  },
  "hsl": {
    "h": 259.535,
    "s": 36.134,
    "l": 53.333
  },
  "oklch": {
    "l": 0.54551,
    "c": 0.13192,
    "h": 296.8
  },
  "luminance": 0.15148
}

Semantic roles & 50–950 ramp

primary
#795DB3
secondary
#BCC8A3
accent
#CC5CA8
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#0F0C13
muted
#7F7D82

Preview Lab

Preview with #795DB3

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

Preview Lab → · Contrast checker → · Palette generator →

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