#795BBE#795BBE

#795BBE is a mid, vivid violet. Relative luminance 0.153; OKLCH L 54.9% C 0.150 H 295.0°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#795BBE
RGBrgb(121, 91, 190)
HSLhsl(258, 43%, 55%)
HSVhsv(258, 52%, 75%)
CMYKcmyk(36.3%, 52.1%, 0%, 25.5%)
CIE-LABlab(45.99, 34.66, -47.98)
CIE-LCHlch(45.99, 59.19, 305.85°)
OKLaboklab(54.87% 0.0632 -0.1357)
OKLCHoklch(54.87% 0.15 295)
XYZxyz(20.9181, 15.2644, 50.5494)
Luminance0.1527 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795BBE #A0BE5B
analogous
#5B6EBE #795BBE #AA5BBE
triadic
#795BBE #BE795B #5BBE79
tetradic
#795BBE #BE5B6E #A0BE5B #5BBEAA
square
#795BBE #BE5B6E #A0BE5B #5BBEAA
split-complementary
#795BBE #BEAA5B #6EBE5B
monochromatic
#422D72 #5B3E9D #795BBE #9D87CF #C1B3E1

Accessibility & contrast

On white

5.18
#795BBE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#795BBE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795BBE
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795BBE#FFFFFF#000000##FFFFFF
##795BBE1.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#346EC1
Deuteranopia (green-blind)
#3A6BBC
Tritanopia (blue-blind)
#696F84
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #795bbe;
/* rgb */ color: rgb(121, 91, 190);
/* oklch */ color: oklch(54.9% 0.150 295.0);
Tailwind
colors: {
  custom: {
    50: '#a38ad2',
    500: '#795bbe',
    950: '#000000',
  },
}
SCSS
$custom: #795bbe;
$custom-light: #a38ad2;
$custom-dark: #000000;
JSON
{
  "hex": "#795bbe",
  "rgb": {
    "r": 121,
    "g": 91,
    "b": 190
  },
  "hsl": {
    "h": 258.182,
    "s": 43.231,
    "l": 55.098
  },
  "oklch": {
    "l": 0.54872,
    "c": 0.14975,
    "h": 295
  },
  "luminance": 0.15265
}

Semantic roles & 50–950 ramp

primary
#795BBE
secondary
#C3CFA6
accent
#D355AD
background
#FAF8FC
surface
#F4F0F9
border
#CECBD2
text
#0F0C14
muted
#7F7D82

Preview Lab

Preview with #795BBE

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

Preview Lab → · Contrast checker → · Palette generator →

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