#795CB4#795CB4

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

Color values

HEX#795CB4
RGBrgb(121, 92, 180)
HSLhsl(260, 37%, 53%)
HSVhsv(260, 49%, 71%)
CMYKcmyk(32.8%, 48.9%, 0%, 29.4%)
CIE-LABlab(45.65, 31.39, -42.70)
CIE-LCHlch(45.65, 52.99, 306.32°)
OKLaboklab(54.43% 0.061 -0.1203)
OKLCHoklch(54.43% 0.135 296.9)
XYZxyz(19.9485, 15.0143, 45.0182)
Luminance0.1502 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795CB4 #97B45C
analogous
#5C6BB4 #795CB4 #A55CB4
triadic
#795CB4 #B4795C #5CB479
tetradic
#795CB4 #B45C6B #97B45C #5CB4A5
square
#795CB4 #B45C6B #97B45C #5CB4A5
split-complementary
#795CB4 #B4A55C #6BB45C
monochromatic
#412F66 #5C4290 #795CB4 #9B86C7 #BEB0DB

Accessibility & contrast

On white

5.25
#795CB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#795CB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795CB4
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795CB4#FFFFFF#000000##FFFFFF
##795CB41.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E6CB7
Deuteranopia (green-blind)
#446BB2
Tritanopia (blue-blind)
#6C6D7F
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #795cb4;
/* rgb */ color: rgb(121, 92, 180);
/* oklch */ color: oklch(54.4% 0.135 296.9);
Tailwind
colors: {
  custom: {
    50: '#a28bcb',
    500: '#795cb4',
    950: '#000000',
  },
}
SCSS
$custom: #795cb4;
$custom-light: #a28bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#795cb4",
  "rgb": {
    "r": 121,
    "g": 92,
    "b": 180
  },
  "hsl": {
    "h": 259.773,
    "s": 36.975,
    "l": 53.333
  },
  "oklch": {
    "l": 0.54432,
    "c": 0.13487,
    "h": 296.9
  },
  "luminance": 0.15015
}

Semantic roles & 50–950 ramp

primary
#795CB4
secondary
#BCC9A3
accent
#CD5BA7
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#0F0C13
muted
#7F7D82

Preview Lab

Preview with #795CB4

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

Preview Lab → · Contrast checker → · Palette generator →

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