#795CB6#795CB6

#795CB6 is a mid, vivid violet. Relative luminance 0.151; OKLCH L 54.6% C 0.138 H 296.4°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#795CB6
RGBrgb(121, 92, 182)
HSLhsl(259, 38%, 54%)
HSVhsv(259, 49%, 71%)
CMYKcmyk(33.5%, 49.5%, 0%, 28.6%)
CIE-LABlab(45.77, 31.92, -43.69)
CIE-LCHlch(45.77, 54.11, 306.16°)
OKLaboklab(54.55% 0.0612 -0.1232)
OKLCHoklch(54.55% 0.138 296.4)
XYZxyz(20.1537, 15.0964, 46.0990)
Luminance0.1510 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795CB6 #99B65C
analogous
#5C6CB6 #795CB6 #A65CB6
triadic
#795CB6 #B6795C #5CB679
tetradic
#795CB6 #B65C6C #99B65C #5CB6A6
square
#795CB6 #B65C6C #99B65C #5CB6A6
split-complementary
#795CB6 #B6A65C #6CB65C
monochromatic
#422F69 #5C4293 #795CB6 #9C86C9 #BEB1DC

Accessibility & contrast

On white

5.22
#795CB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#795CB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795CB6
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795CB6#FFFFFF#000000##FFFFFF
##795CB61.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D6DB9
Deuteranopia (green-blind)
#436BB4
Tritanopia (blue-blind)
#6B6D80
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #795cb6;
/* rgb */ color: rgb(121, 92, 182);
/* oklch */ color: oklch(54.6% 0.138 296.4);
Tailwind
colors: {
  custom: {
    50: '#a38bcc',
    500: '#795cb6',
    950: '#000000',
  },
}
SCSS
$custom: #795cb6;
$custom-light: #a38bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#795cb6",
  "rgb": {
    "r": 121,
    "g": 92,
    "b": 182
  },
  "hsl": {
    "h": 259.333,
    "s": 38.136,
    "l": 53.725
  },
  "oklch": {
    "l": 0.54553,
    "c": 0.13755,
    "h": 296.4
  },
  "luminance": 0.15097
}

Semantic roles & 50–950 ramp

primary
#795CB6
secondary
#BECAA4
accent
#CE5AA9
background
#FAF8FC
surface
#F4F0F9
border
#CECBD2
text
#0F0C13
muted
#7F7D82

Preview Lab

Preview with #795CB6

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

Preview Lab → · Contrast checker → · Palette generator →

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