#795BAC#795BAC

#795BAC is a mid, vivid violet. Relative luminance 0.145; OKLCH L 53.8% C 0.126 H 299.2°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#795BAC
RGBrgb(121, 91, 172)
HSLhsl(262, 33%, 52%)
HSVhsv(262, 47%, 67%)
CMYKcmyk(29.7%, 47.1%, 0%, 32.5%)
CIE-LABlab(44.98, 29.88, -39.08)
CIE-LCHlch(44.98, 49.20, 307.40°)
OKLaboklab(53.78% 0.0614 -0.1097)
OKLCHoklch(53.78% 0.126 299.2)
XYZxyz(19.0709, 14.5255, 40.8207)
Luminance0.1453 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795BAC #8EAC5B
analogous
#5B66AC #795BAC #A25BAC
triadic
#795BAC #AC795B #5BAC79
tetradic
#795BAC #AC5B66 #8EAC5B #5BACA2
square
#795BAC #AC5B66 #8EAC5B #5BACA2
split-complementary
#795BAC #ACA25B #66AC5B
monochromatic
#402F5D #5C4486 #795BAC #9A84C1 #BBACD5

Accessibility & contrast

On white

5.38
#795BAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#795BAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795BAC
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795BAC#FFFFFF#000000##FFFFFF
##795BAC1.005.383.915.38
#FFFFFF5.381.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#426AAF
Deuteranopia (green-blind)
#496AAA
Tritanopia (blue-blind)
#6F6A7B
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #795bac;
/* rgb */ color: rgb(121, 91, 172);
/* oklch */ color: oklch(53.8% 0.126 299.2);
Tailwind
colors: {
  custom: {
    50: '#a28ac5',
    500: '#795bac',
    950: '#000000',
  },
}
SCSS
$custom: #795bac;
$custom-light: #a28ac5;
$custom-dark: #000000;
JSON
{
  "hex": "#795bac",
  "rgb": {
    "r": 121,
    "g": 91,
    "b": 172
  },
  "hsl": {
    "h": 262.222,
    "s": 32.794,
    "l": 51.569
  },
  "oklch": {
    "l": 0.53784,
    "c": 0.12573,
    "h": 299.2
  },
  "luminance": 0.14526
}

Semantic roles & 50–950 ramp

primary
#795BAC
secondary
#B6C3A0
accent
#C95FA2
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#0F0B13
muted
#7F7C82

Preview Lab

Preview with #795BAC

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

Preview Lab → · Contrast checker → · Palette generator →

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