#795AB9#795AB9

#795AB9 is a mid, vivid violet. Relative luminance 0.149; OKLCH L 54.4% C 0.145 H 296.3°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#795AB9
RGBrgb(121, 90, 185)
HSLhsl(260, 40%, 54%)
HSVhsv(260, 51%, 73%)
CMYKcmyk(34.6%, 51.4%, 0%, 27.5%)
CIE-LABlab(45.47, 33.90, -45.91)
CIE-LCHlch(45.47, 57.07, 306.45°)
OKLaboklab(54.39% 0.0642 -0.1297)
OKLCHoklch(54.39% 0.145 296.3)
XYZxyz(20.2961, 14.8798, 47.6923)
Luminance0.1488 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795AB9 #9AB95A
analogous
#5A6BB9 #795AB9 #A95AB9
triadic
#795AB9 #B9795A #5AB979
tetradic
#795AB9 #B95A6B #9AB95A #5AB9A9
square
#795AB9 #B95A6B #9AB95A #5AB9A9
split-complementary
#795AB9 #B9A95A #6BB95A
monochromatic
#422D6B #5C4096 #795AB9 #9C85CB #BFB0DD

Accessibility & contrast

On white

5.28
#795AB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#795AB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795AB9
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795AB9#FFFFFF#000000##FFFFFF
##795AB91.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#366CBC
Deuteranopia (green-blind)
#3E6AB7
Tritanopia (blue-blind)
#6A6D81
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #795ab9;
/* rgb */ color: rgb(121, 90, 185);
/* oklch */ color: oklch(54.4% 0.145 296.3);
Tailwind
colors: {
  custom: {
    50: '#a389ce',
    500: '#795ab9',
    950: '#000000',
  },
}
SCSS
$custom: #795ab9;
$custom-light: #a389ce;
$custom-dark: #000000;
JSON
{
  "hex": "#795ab9",
  "rgb": {
    "r": 121,
    "g": 90,
    "b": 185
  },
  "hsl": {
    "h": 259.579,
    "s": 40.426,
    "l": 53.922
  },
  "oklch": {
    "l": 0.54387,
    "c": 0.14469,
    "h": 296.3
  },
  "luminance": 0.1488
}

Semantic roles & 50–950 ramp

primary
#795AB9
secondary
#BECCA3
accent
#D058A9
background
#FAF8FC
surface
#F4F0F9
border
#CECBD2
text
#0F0B14
muted
#7F7C82

Preview Lab

Preview with #795AB9

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

Preview Lab → · Contrast checker → · Palette generator →

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