#795BB0#795BB0

#795BB0 is a mid, vivid violet. Relative luminance 0.147; OKLCH L 54.0% C 0.131 H 298.2°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#795BB0
RGBrgb(121, 91, 176)
HSLhsl(261, 35%, 52%)
HSVhsv(261, 48%, 69%)
CMYKcmyk(31.3%, 48.3%, 0%, 31%)
CIE-LABlab(45.19, 30.93, -41.08)
CIE-LCHlch(45.19, 51.42, 306.97°)
OKLaboklab(54.02% 0.0619 -0.1156)
OKLCHoklch(54.02% 0.131 298.2)
XYZxyz(19.4608, 14.6815, 42.8744)
Luminance0.1468 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795BB0 #92B05B
analogous
#5B68B0 #795BB0 #A35BB0
triadic
#795BB0 #B0795B #5BB079
tetradic
#795BB0 #B05B68 #92B05B #5BB0A3
square
#795BB0 #B05B68 #92B05B #5BB0A3
split-complementary
#795BB0 #B0A35B #68B05B
monochromatic
#412F62 #5C438B #795BB0 #9B84C4 #BCAED8

Accessibility & contrast

On white

5.33
#795BB0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #795BB0
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795BB0#FFFFFF#000000##FFFFFF
##795BB01.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F6BB3
Deuteranopia (green-blind)
#466AAE
Tritanopia (blue-blind)
#6D6B7D
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #795bb0;
/* rgb */ color: rgb(121, 91, 176);
/* oklch */ color: oklch(54.0% 0.131 298.2);
Tailwind
colors: {
  custom: {
    50: '#a28ac8',
    500: '#795bb0',
    950: '#000000',
  },
}
SCSS
$custom: #795bb0;
$custom-light: #a28ac8;
$custom-dark: #000000;
JSON
{
  "hex": "#795bb0",
  "rgb": {
    "r": 121,
    "g": 91,
    "b": 176
  },
  "hsl": {
    "h": 261.176,
    "s": 34.979,
    "l": 52.353
  },
  "oklch": {
    "l": 0.54017,
    "c": 0.13111,
    "h": 298.2
  },
  "luminance": 0.14682
}

Semantic roles & 50–950 ramp

primary
#795BB0
secondary
#B9C6A1
accent
#CB5DA4
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#0F0C13
muted
#7F7D82

Preview Lab

Preview with #795BB0

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

Preview Lab → · Contrast checker → · Palette generator →

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