#795DB7#795DB7

#795DB7 is a mid, vivid violet. Relative luminance 0.153; OKLCH L 54.8% C 0.137 H 295.9°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#795DB7
RGBrgb(121, 93, 183)
HSLhsl(259, 38%, 54%)
HSVhsv(259, 49%, 72%)
CMYKcmyk(33.9%, 49.2%, 0%, 28.2%)
CIE-LABlab(46.06, 31.60, -43.80)
CIE-LCHlch(46.06, 54.01, 305.81°)
OKLaboklab(54.79% 0.06 -0.1235)
OKLCHoklch(54.79% 0.137 295.9)
XYZxyz(20.3446, 15.3122, 46.6743)
Luminance0.1531 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795DB7 #9BB75D
analogous
#5D6EB7 #795DB7 #A65DB7
triadic
#795DB7 #B7795D #5DB779
tetradic
#795DB7 #B75D6E #9BB75D #5DB7A6
square
#795DB7 #B75D6E #9BB75D #5DB7A6
split-complementary
#795DB7 #B7A65D #6EB75D
monochromatic
#422F6A #5C4295 #795DB7 #9C87CA #BFB2DD

Accessibility & contrast

On white

5.17
#795DB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#795DB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795DB7
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795DB7#FFFFFF#000000##FFFFFF
##795DB71.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D6EBA
Deuteranopia (green-blind)
#436CB5
Tritanopia (blue-blind)
#6B6E81
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #795db7;
/* rgb */ color: rgb(121, 93, 183);
/* oklch */ color: oklch(54.8% 0.137 295.9);
Tailwind
colors: {
  custom: {
    50: '#a38bcd',
    500: '#795db7',
    950: '#000000',
  },
}
SCSS
$custom: #795db7;
$custom-light: #a38bcd;
$custom-dark: #000000;
JSON
{
  "hex": "#795db7",
  "rgb": {
    "r": 121,
    "g": 93,
    "b": 183
  },
  "hsl": {
    "h": 258.667,
    "s": 38.462,
    "l": 54.118
  },
  "oklch": {
    "l": 0.5479,
    "c": 0.1373,
    "h": 295.9
  },
  "luminance": 0.15313
}

Semantic roles & 50–950 ramp

primary
#795DB7
secondary
#BFCBA5
accent
#CE59AA
background
#FAF8FC
surface
#F4F0F9
border
#CECBD2
text
#0F0C13
muted
#7F7D82

Preview Lab

Preview with #795DB7

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

Preview Lab → · Contrast checker → · Palette generator →

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