#795AB2#795AB2

#795AB2 is a mid, vivid violet. Relative luminance 0.146; OKLCH L 54.0% C 0.135 H 298.0°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#795AB2
RGBrgb(121, 90, 178)
HSLhsl(261, 36%, 53%)
HSVhsv(261, 49%, 70%)
CMYKcmyk(32%, 49.4%, 0%, 30.2%)
CIE-LABlab(45.07, 32.04, -42.45)
CIE-LCHlch(45.07, 53.19, 307.05°)
OKLaboklab(53.96% 0.0635 -0.1196)
OKLCHoklch(53.96% 0.135 298)
XYZxyz(19.5753, 14.5914, 43.8960)
Luminance0.1459 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795AB2 #93B25A
analogous
#5A67B2 #795AB2 #A55AB2
triadic
#795AB2 #B2795A #5AB279
tetradic
#795AB2 #B25A67 #93B25A #5AB2A5
square
#795AB2 #B25A67 #93B25A #5AB2A5
split-complementary
#795AB2 #B2A55A #67B25A
monochromatic
#412E63 #5C428D #795AB2 #9B84C5 #BDADD9

Accessibility & contrast

On white

5.36
#795AB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#795AB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795AB2
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795AB2#FFFFFF#000000##FFFFFF
##795AB21.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C6BB5
Deuteranopia (green-blind)
#436AB0
Tritanopia (blue-blind)
#6D6B7E
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #795ab2;
/* rgb */ color: rgb(121, 90, 178);
/* oklch */ color: oklch(54.0% 0.135 298.0);
Tailwind
colors: {
  custom: {
    50: '#a289c9',
    500: '#795ab2',
    950: '#000000',
  },
}
SCSS
$custom: #795ab2;
$custom-light: #a289c9;
$custom-dark: #000000;
JSON
{
  "hex": "#795ab2",
  "rgb": {
    "r": 121,
    "g": 90,
    "b": 178
  },
  "hsl": {
    "h": 261.136,
    "s": 36.364,
    "l": 52.549
  },
  "oklch": {
    "l": 0.5396,
    "c": 0.1354,
    "h": 298
  },
  "luminance": 0.14592
}

Semantic roles & 50–950 ramp

primary
#795AB2
secondary
#BAC7A1
accent
#CC5BA5
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#0F0B13
muted
#7F7C82

Preview Lab

Preview with #795AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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