#795BC1#795BC1

#795BC1 is a mid, vivid violet. Relative luminance 0.154; OKLCH L 55.1% C 0.154 H 294.4°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#795BC1
RGBrgb(121, 91, 193)
HSLhsl(258, 45%, 56%)
HSVhsv(258, 53%, 76%)
CMYKcmyk(37.3%, 52.8%, 0%, 24.3%)
CIE-LABlab(46.17, 35.48, -49.43)
CIE-LCHlch(46.17, 60.84, 305.67°)
OKLaboklab(55.06% 0.0634 -0.14)
OKLCHoklch(55.06% 0.154 294.4)
XYZxyz(21.2494, 15.3969, 52.2941)
Luminance0.1540 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795BC1 #A3C15B
analogous
#5B70C1 #795BC1 #AC5BC1
triadic
#795BC1 #C1795B #5BC179
tetradic
#795BC1 #C15B70 #A3C15B #5BC1AC
square
#795BC1 #C15B70 #A3C15B #5BC1AC
split-complementary
#795BC1 #C1AC5B #70C15B
monochromatic
#422C75 #5B3DA2 #795BC1 #9D87D2 #C2B4E3

Accessibility & contrast

On white

5.15
#795BC1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#795BC1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795BC1
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795BC1#FFFFFF#000000##FFFFFF
##795BC11.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#306EC5
Deuteranopia (green-blind)
#376CBF
Tritanopia (blue-blind)
#677085
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #795bc1;
/* rgb */ color: rgb(121, 91, 193);
/* oklch */ color: oklch(55.1% 0.154 294.4);
Tailwind
colors: {
  custom: {
    50: '#a38ad4',
    500: '#795bc1',
    950: '#000000',
  },
}
SCSS
$custom: #795bc1;
$custom-light: #a38ad4;
$custom-dark: #000000;
JSON
{
  "hex": "#795bc1",
  "rgb": {
    "r": 121,
    "g": 91,
    "b": 193
  },
  "hsl": {
    "h": 257.647,
    "s": 45.133,
    "l": 55.686
  },
  "oklch": {
    "l": 0.55063,
    "c": 0.1537,
    "h": 294.4
  },
  "luminance": 0.15397
}

Semantic roles & 50–950 ramp

primary
#795BC1
secondary
#C5D1A7
accent
#D553AF
background
#FAF8FD
surface
#F4F0FA
border
#CECBD3
text
#0F0C14
muted
#7F7D83

Preview Lab

Preview with #795BC1

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

Preview Lab → · Contrast checker → · Palette generator →

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