#795CC5#795CC5

#795CC5 is a mid, vivid violet. Relative luminance 0.158; OKLCH L 55.5% C 0.157 H 293.3°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#795CC5
RGBrgb(121, 92, 197)
HSLhsl(257, 48%, 57%)
HSVhsv(257, 53%, 77%)
CMYKcmyk(38.6%, 53.3%, 0%, 22.7%)
CIE-LABlab(46.64, 35.98, -50.99)
CIE-LCHlch(46.64, 62.41, 305.21°)
OKLaboklab(55.49% 0.0623 -0.1446)
OKLCHoklch(55.49% 0.157 293.3)
XYZxyz(21.7877, 15.7499, 54.7046)
Luminance0.1575 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795CC5 #A8C55C
analogous
#5C74C5 #795CC5 #AD5CC5
triadic
#795CC5 #C5795C #5CC579
tetradic
#795CC5 #C55C74 #A8C55C #5CC5AD
square
#795CC5 #C55C74 #A8C55C #5CC5AD
split-complementary
#795CC5 #C5AD5C #74C55C
monochromatic
#422C7B #5A3CA8 #795CC5 #9E89D5 #C3B6E5

Accessibility & contrast

On white

5.06
#795CC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#795CC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795CC5
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795CC5#FFFFFF#000000##FFFFFF
##795CC51.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E70C9
Deuteranopia (green-blind)
#356DC3
Tritanopia (blue-blind)
#667288
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #795cc5;
/* rgb */ color: rgb(121, 92, 197);
/* oklch */ color: oklch(55.5% 0.157 293.3);
Tailwind
colors: {
  custom: {
    50: '#a48bd7',
    500: '#795cc5',
    950: '#000000',
  },
}
SCSS
$custom: #795cc5;
$custom-light: #a48bd7;
$custom-dark: #000000;
JSON
{
  "hex": "#795cc5",
  "rgb": {
    "r": 121,
    "g": 92,
    "b": 197
  },
  "hsl": {
    "h": 256.571,
    "s": 47.511,
    "l": 56.667
  },
  "oklch": {
    "l": 0.55491,
    "c": 0.15745,
    "h": 293.3
  },
  "luminance": 0.1575
}

Semantic roles & 50–950 ramp

primary
#795CC5
secondary
#C8D4A9
accent
#D751B2
background
#FAF8FD
surface
#F4F0FA
border
#CECBD3
text
#100C14
muted
#7F7D83

Preview Lab

Preview with #795CC5

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

Preview Lab → · Contrast checker → · Palette generator →

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