#795DC4#795DC4

#795DC4 is a mid, vivid violet. Relative luminance 0.159; OKLCH L 55.6% C 0.155 H 293.2°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#795DC4
RGBrgb(121, 93, 196)
HSLhsl(256, 47%, 57%)
HSVhsv(256, 53%, 77%)
CMYKcmyk(38.3%, 52.6%, 0%, 23.1%)
CIE-LABlab(46.81, 35.12, -50.14)
CIE-LCHlch(46.81, 61.22, 305.01°)
OKLaboklab(55.6% 0.061 -0.1421)
OKLCHoklch(55.6% 0.155 293.2)
XYZxyz(21.7607, 15.8787, 54.1322)
Luminance0.1588 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795DC4 #A8C45D
analogous
#5D75C4 #795DC4 #AD5DC4
triadic
#795DC4 #C4795D #5DC479
tetradic
#795DC4 #C45D75 #A8C45D #5DC4AD
square
#795DC4 #C45D75 #A8C45D #5DC4AD
split-complementary
#795DC4 #C4AD5D #75C45D
monochromatic
#422C7A #5A3DA7 #795DC4 #9E8AD4 #C3B7E5

Accessibility & contrast

On white

5.03
#795DC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#795DC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795DC4
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795DC4#FFFFFF#000000##FFFFFF
##795DC41.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3170C8
Deuteranopia (green-blind)
#376DC2
Tritanopia (blue-blind)
#667288
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #795dc4;
/* rgb */ color: rgb(121, 93, 196);
/* oklch */ color: oklch(55.6% 0.155 293.2);
Tailwind
colors: {
  custom: {
    50: '#a48bd6',
    500: '#795dc4',
    950: '#000000',
  },
}
SCSS
$custom: #795dc4;
$custom-light: #a48bd6;
$custom-dark: #000000;
JSON
{
  "hex": "#795dc4",
  "rgb": {
    "r": 121,
    "g": 93,
    "b": 196
  },
  "hsl": {
    "h": 256.311,
    "s": 46.606,
    "l": 56.667
  },
  "oklch": {
    "l": 0.55598,
    "c": 0.15463,
    "h": 293.2
  },
  "luminance": 0.15879
}

Semantic roles & 50–950 ramp

primary
#795DC4
secondary
#C8D3A9
accent
#D652B2
background
#FAF8FD
surface
#F4F0FA
border
#CECBD3
text
#0F0C14
muted
#7F7D83

Preview Lab

Preview with #795DC4

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

Preview Lab → · Contrast checker → · Palette generator →

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