#795EB3#795EB3

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

Color values

HEX#795EB3
RGBrgb(121, 94, 179)
HSLhsl(259, 36%, 54%)
HSVhsv(259, 47%, 70%)
CMYKcmyk(32.4%, 47.5%, 0%, 29.8%)
CIE-LABlab(46.08, 29.94, -41.44)
CIE-LCHlch(46.08, 51.12, 305.85°)
OKLaboklab(54.73% 0.0581 -0.1166)
OKLCHoklch(54.73% 0.13 296.5)
XYZxyz(20.0225, 15.3248, 44.5422)
Luminance0.1532 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795EB3 #98B35E
analogous
#5E6DB3 #795EB3 #A35EB3
triadic
#795EB3 #B3795E #5EB379
tetradic
#795EB3 #B35E6D #98B35E #5EB3A3
square
#795EB3 #B35E6D #98B35E #5EB3A3
split-complementary
#795EB3 #B3A35E #6DB35E
monochromatic
#413066 #5C4490 #795EB3 #9C88C7 #BEB1DA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##795EB3#FFFFFF#000000##FFFFFF
##795EB31.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)
#426EB6
Deuteranopia (green-blind)
#476CB1
Tritanopia (blue-blind)
#6C6E80
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #795eb3;
/* rgb */ color: rgb(121, 94, 179);
/* oklch */ color: oklch(54.7% 0.130 296.5);
Tailwind
colors: {
  custom: {
    50: '#a28cca',
    500: '#795eb3',
    950: '#000000',
  },
}
SCSS
$custom: #795eb3;
$custom-light: #a28cca;
$custom-dark: #000000;
JSON
{
  "hex": "#795eb3",
  "rgb": {
    "r": 121,
    "g": 94,
    "b": 179
  },
  "hsl": {
    "h": 259.059,
    "s": 35.865,
    "l": 53.529
  },
  "oklch": {
    "l": 0.54731,
    "c": 0.13031,
    "h": 296.5
  },
  "luminance": 0.15325
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #795EB3

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

Preview Lab → · Contrast checker → · Palette generator →

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