#795EB8#795EB8

#795EB8 is a mid, vivid violet. Relative luminance 0.155; OKLCH L 55.0% C 0.137 H 295.4°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#795EB8
RGBrgb(121, 94, 184)
HSLhsl(258, 39%, 55%)
HSVhsv(258, 49%, 72%)
CMYKcmyk(34.2%, 48.9%, 0%, 27.8%)
CIE-LABlab(46.35, 31.27, -43.92)
CIE-LCHlch(46.35, 53.91, 305.45°)
OKLaboklab(55.03% 0.0587 -0.1239)
OKLCHoklch(55.03% 0.137 295.4)
XYZxyz(20.5374, 15.5307, 47.2538)
Luminance0.1553 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795EB8 #9DB85E
analogous
#5E70B8 #795EB8 #A65EB8
triadic
#795EB8 #B8795E #5EB879
tetradic
#795EB8 #B85E70 #9DB85E #5EB8A6
square
#795EB8 #B85E70 #9DB85E #5EB8A6
split-complementary
#795EB8 #B8A65E #70B85E
monochromatic
#42306C #5C4296 #795EB8 #9C88CB #C0B3DD

Accessibility & contrast

On white

5.11
#795EB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#795EB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795EB8
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795EB8#FFFFFF#000000##FFFFFF
##795EB81.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E6FBB
Deuteranopia (green-blind)
#446DB6
Tritanopia (blue-blind)
#6B6F82
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #795eb8;
/* rgb */ color: rgb(121, 94, 184);
/* oklch */ color: oklch(55.0% 0.137 295.4);
Tailwind
colors: {
  custom: {
    50: '#a38cce',
    500: '#795eb8',
    950: '#000000',
  },
}
SCSS
$custom: #795eb8;
$custom-light: #a38cce;
$custom-dark: #000000;
JSON
{
  "hex": "#795eb8",
  "rgb": {
    "r": 121,
    "g": 94,
    "b": 184
  },
  "hsl": {
    "h": 258,
    "s": 38.793,
    "l": 54.51
  },
  "oklch": {
    "l": 0.55028,
    "c": 0.13707,
    "h": 295.4
  },
  "luminance": 0.15531
}

Semantic roles & 50–950 ramp

primary
#795EB8
secondary
#C1CCA6
accent
#CF59AB
background
#FAF8FC
surface
#F4F0F9
border
#CECBD2
text
#0F0C13
muted
#7F7D82

Preview Lab

Preview with #795EB8

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

Preview Lab → · Contrast checker → · Palette generator →

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