#795BB1#795BB1

#795BB1 is a mid, vivid violet. Relative luminance 0.147; OKLCH L 54.1% C 0.132 H 297.9°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#795BB1
RGBrgb(121, 91, 177)
HSLhsl(261, 36%, 53%)
HSVhsv(261, 49%, 69%)
CMYKcmyk(31.6%, 48.6%, 0%, 30.6%)
CIE-LABlab(45.25, 31.19, -41.58)
CIE-LCHlch(45.25, 51.98, 306.87°)
OKLaboklab(54.08% 0.062 -0.117)
OKLCHoklch(54.08% 0.132 297.9)
XYZxyz(19.5601, 14.7212, 43.3974)
Luminance0.1472 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795BB1 #93B15B
analogous
#5B68B1 #795BB1 #A45BB1
triadic
#795BB1 #B1795B #5BB179
tetradic
#795BB1 #B15B68 #93B15B #5BB1A4
square
#795BB1 #B15B68 #93B15B #5BB1A4
split-complementary
#795BB1 #B1A45B #68B15B
monochromatic
#412F63 #5C438C #795BB1 #9B84C5 #BDAED8

Accessibility & contrast

On white

5.32
#795BB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#795BB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795BB1
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795BB1#FFFFFF#000000##FFFFFF
##795BB11.005.323.945.32
#FFFFFF5.321.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F6BB4
Deuteranopia (green-blind)
#456AAF
Tritanopia (blue-blind)
#6D6B7D
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #795bb1;
/* rgb */ color: rgb(121, 91, 177);
/* oklch */ color: oklch(54.1% 0.132 297.9);
Tailwind
colors: {
  custom: {
    50: '#a28ac9',
    500: '#795bb1',
    950: '#000000',
  },
}
SCSS
$custom: #795bb1;
$custom-light: #a28ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#795bb1",
  "rgb": {
    "r": 121,
    "g": 91,
    "b": 177
  },
  "hsl": {
    "h": 260.93,
    "s": 35.537,
    "l": 52.549
  },
  "oklch": {
    "l": 0.54076,
    "c": 0.13245,
    "h": 297.9
  },
  "luminance": 0.14721
}

Semantic roles & 50–950 ramp

primary
#795BB1
secondary
#BAC7A1
accent
#CC5CA5
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#0F0C13
muted
#7F7D82

Preview Lab

Preview with #795BB1

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

Preview Lab → · Contrast checker → · Palette generator →

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