#795EB5#795EB5

#795EB5 is a mid, vivid violet. Relative luminance 0.154; OKLCH L 54.8% C 0.133 H 296.0°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#795EB5
RGBrgb(121, 94, 181)
HSLhsl(259, 37%, 54%)
HSVhsv(259, 48%, 71%)
CMYKcmyk(33.1%, 48.1%, 0%, 29%)
CIE-LABlab(46.19, 30.47, -42.43)
CIE-LCHlch(46.19, 52.24, 305.68°)
OKLaboklab(54.85% 0.0584 -0.1195)
OKLCHoklch(54.85% 0.133 296)
XYZxyz(20.2263, 15.4063, 45.6152)
Luminance0.1541 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795EB5 #9AB55E
analogous
#5E6FB5 #795EB5 #A55EB5
triadic
#795EB5 #B5795E #5EB579
tetradic
#795EB5 #B55E6F #9AB55E #5EB5A5
square
#795EB5 #B55E6F #9AB55E #5EB5A5
split-complementary
#795EB5 #B5A55E #6FB55E
monochromatic
#423069 #5C4392 #795EB5 #9C88C8 #BFB2DC

Accessibility & contrast

On white

5.15
#795EB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#795EB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795EB5
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795EB5#FFFFFF#000000##FFFFFF
##795EB51.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#416EB8
Deuteranopia (green-blind)
#466CB3
Tritanopia (blue-blind)
#6C6E81
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #795eb5;
/* rgb */ color: rgb(121, 94, 181);
/* oklch */ color: oklch(54.8% 0.133 296.0);
Tailwind
colors: {
  custom: {
    50: '#a28ccb',
    500: '#795eb5',
    950: '#000000',
  },
}
SCSS
$custom: #795eb5;
$custom-light: #a28ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#795eb5",
  "rgb": {
    "r": 121,
    "g": 94,
    "b": 181
  },
  "hsl": {
    "h": 258.621,
    "s": 37.021,
    "l": 53.922
  },
  "oklch": {
    "l": 0.54849,
    "c": 0.13302,
    "h": 296
  },
  "luminance": 0.15407
}

Semantic roles & 50–950 ramp

primary
#795EB5
secondary
#BECAA5
accent
#CD5BAA
background
#FAF8FC
surface
#F4F0F9
border
#CECBD2
text
#0F0C13
muted
#7F7D82

Preview Lab

Preview with #795EB5

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

Preview Lab → · Contrast checker → · Palette generator →

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