#795BC3#795BC3

#795BC3 is a mid, vivid violet. Relative luminance 0.155; OKLCH L 55.2% C 0.156 H 294.0°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#795BC3
RGBrgb(121, 91, 195)
HSLhsl(257, 46%, 56%)
HSVhsv(257, 53%, 76%)
CMYKcmyk(37.9%, 53.3%, 0%, 23.5%)
CIE-LABlab(46.29, 36.02, -50.39)
CIE-LCHlch(46.29, 61.94, 305.56°)
OKLaboklab(55.19% 0.0635 -0.1428)
OKLCHoklch(55.19% 0.156 294)
XYZxyz(21.4740, 15.4868, 53.4770)
Luminance0.1549 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795BC3 #A5C35B
analogous
#5B71C3 #795BC3 #AD5BC3
triadic
#795BC3 #C3795B #5BC379
tetradic
#795BC3 #C35B71 #A5C35B #5BC3AD
square
#795BC3 #C35B71 #A5C35B #5BC3AD
split-complementary
#795BC3 #C3AD5B #71C35B
monochromatic
#422C78 #5A3CA5 #795BC3 #9E88D3 #C2B5E4

Accessibility & contrast

On white

5.13
#795BC3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#795BC3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795BC3
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795BC3#FFFFFF#000000##FFFFFF
##795BC31.005.134.105.13
#FFFFFF5.131.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E6FC7
Deuteranopia (green-blind)
#356CC1
Tritanopia (blue-blind)
#677086
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #795bc3;
/* rgb */ color: rgb(121, 91, 195);
/* oklch */ color: oklch(55.2% 0.156 294.0);
Tailwind
colors: {
  custom: {
    50: '#a48ad6',
    500: '#795bc3',
    950: '#000000',
  },
}
SCSS
$custom: #795bc3;
$custom-light: #a48ad6;
$custom-dark: #000000;
JSON
{
  "hex": "#795bc3",
  "rgb": {
    "r": 121,
    "g": 91,
    "b": 195
  },
  "hsl": {
    "h": 257.308,
    "s": 46.429,
    "l": 56.078
  },
  "oklch": {
    "l": 0.55191,
    "c": 0.15632,
    "h": 294
  },
  "luminance": 0.15487
}

Semantic roles & 50–950 ramp

primary
#795BC3
secondary
#C6D2A7
accent
#D652B0
background
#FAF8FD
surface
#F4F0FA
border
#CECBD3
text
#0F0C14
muted
#7F7D83

Preview Lab

Preview with #795BC3

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

Preview Lab → · Contrast checker → · Palette generator →

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