#795CB3#795CB3

#795CB3 is a mid, vivid violet. Relative luminance 0.150; OKLCH L 54.4% C 0.134 H 297.1°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#795CB3
RGBrgb(121, 92, 179)
HSLhsl(260, 36%, 53%)
HSVhsv(260, 49%, 70%)
CMYKcmyk(32.4%, 48.6%, 0%, 29.8%)
CIE-LABlab(45.60, 31.13, -42.20)
CIE-LCHlch(45.60, 52.44, 306.41°)
OKLaboklab(54.37% 0.0609 -0.1188)
OKLCHoklch(54.37% 0.134 297.1)
XYZxyz(19.8470, 14.9737, 44.4837)
Luminance0.1497 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795CB3 #96B35C
analogous
#5C6AB3 #795CB3 #A45CB3
triadic
#795CB3 #B3795C #5CB379
tetradic
#795CB3 #B35C6A #96B35C #5CB3A4
square
#795CB3 #B35C6A #96B35C #5CB3A4
split-complementary
#795CB3 #B3A45C #6AB35C
monochromatic
#412F65 #5C438F #795CB3 #9B86C6 #BEAFDA

Accessibility & contrast

On white

5.26
#795CB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#795CB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795CB3
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795CB3#FFFFFF#000000##FFFFFF
##795CB31.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F6CB6
Deuteranopia (green-blind)
#456BB1
Tritanopia (blue-blind)
#6C6C7F
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #795cb3;
/* rgb */ color: rgb(121, 92, 179);
/* oklch */ color: oklch(54.4% 0.134 297.1);
Tailwind
colors: {
  custom: {
    50: '#a28bca',
    500: '#795cb3',
    950: '#000000',
  },
}
SCSS
$custom: #795cb3;
$custom-light: #a28bca;
$custom-dark: #000000;
JSON
{
  "hex": "#795cb3",
  "rgb": {
    "r": 121,
    "g": 92,
    "b": 179
  },
  "hsl": {
    "h": 260,
    "s": 36.402,
    "l": 53.137
  },
  "oklch": {
    "l": 0.54373,
    "c": 0.13352,
    "h": 297.1
  },
  "luminance": 0.14974
}

Semantic roles & 50–950 ramp

primary
#795CB3
secondary
#BCC8A3
accent
#CC5BA7
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#0F0C13
muted
#7F7D82

Preview Lab

Preview with #795CB3

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

Preview Lab → · Contrast checker → · Palette generator →

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