#795DB8#795DB8

#795DB8 is a mid, vivid violet. Relative luminance 0.154; OKLCH L 54.9% C 0.139 H 295.7°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#795DB8
RGBrgb(121, 93, 184)
HSLhsl(258, 39%, 54%)
HSVhsv(258, 49%, 72%)
CMYKcmyk(34.2%, 49.5%, 0%, 27.8%)
CIE-LABlab(46.12, 31.87, -44.30)
CIE-LCHlch(46.12, 54.57, 305.73°)
OKLaboklab(54.85% 0.0601 -0.125)
OKLCHoklch(54.85% 0.139 295.7)
XYZxyz(20.4491, 15.3540, 47.2244)
Luminance0.1535 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795DB8 #9CB85D
analogous
#5D6FB8 #795DB8 #A75DB8
triadic
#795DB8 #B8795D #5DB879
tetradic
#795DB8 #B85D6F #9CB85D #5DB8A7
square
#795DB8 #B85D6F #9CB85D #5DB8A7
split-complementary
#795DB8 #B8A75D #6FB85D
monochromatic
#422F6B #5C4296 #795DB8 #9C88CB #BFB2DD

Accessibility & contrast

On white

5.16
#795DB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#795DB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795DB8
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795DB8#FFFFFF#000000##FFFFFF
##795DB81.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D6EBB
Deuteranopia (green-blind)
#426CB6
Tritanopia (blue-blind)
#6B6F82
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #795db8;
/* rgb */ color: rgb(121, 93, 184);
/* oklch */ color: oklch(54.9% 0.139 295.7);
Tailwind
colors: {
  custom: {
    50: '#a38bce',
    500: '#795db8',
    950: '#000000',
  },
}
SCSS
$custom: #795db8;
$custom-light: #a38bce;
$custom-dark: #000000;
JSON
{
  "hex": "#795db8",
  "rgb": {
    "r": 121,
    "g": 93,
    "b": 184
  },
  "hsl": {
    "h": 258.462,
    "s": 39.056,
    "l": 54.314
  },
  "oklch": {
    "l": 0.5485,
    "c": 0.13865,
    "h": 295.7
  },
  "luminance": 0.15354
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #795DB8

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

Preview Lab → · Contrast checker → · Palette generator →

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