#795DC5#795DC5

#795DC5 is a mid, vivid violet. Relative luminance 0.159; OKLCH L 55.7% C 0.156 H 293.1°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#795DC5
RGBrgb(121, 93, 197)
HSLhsl(256, 47%, 57%)
HSVhsv(256, 53%, 77%)
CMYKcmyk(38.6%, 52.8%, 0%, 22.7%)
CIE-LABlab(46.88, 35.40, -50.62)
CIE-LCHlch(46.88, 61.77, 304.97°)
OKLaboklab(55.66% 0.0611 -0.1435)
OKLCHoklch(55.66% 0.156 293.1)
XYZxyz(21.8749, 15.9243, 54.7337)
Luminance0.1593 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795DC5 #A9C55D
analogous
#5D75C5 #795DC5 #AD5DC5
triadic
#795DC5 #C5795D #5DC579
tetradic
#795DC5 #C55D75 #A9C55D #5DC5AD
square
#795DC5 #C55D75 #A9C55D #5DC5AD
split-complementary
#795DC5 #C5AD5D #75C55D
monochromatic
#422C7B #593CA8 #795DC5 #9E8AD5 #C4B7E5

Accessibility & contrast

On white

5.02
#795DC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #795DC5
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795DC5#FFFFFF#000000##FFFFFF
##795DC51.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3070C9
Deuteranopia (green-blind)
#366DC3
Tritanopia (blue-blind)
#667288
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #795dc5;
/* rgb */ color: rgb(121, 93, 197);
/* oklch */ color: oklch(55.7% 0.156 293.1);
Tailwind
colors: {
  custom: {
    50: '#a48bd7',
    500: '#795dc5',
    950: '#000000',
  },
}
SCSS
$custom: #795dc5;
$custom-light: #a48bd7;
$custom-dark: #000000;
JSON
{
  "hex": "#795dc5",
  "rgb": {
    "r": 121,
    "g": 93,
    "b": 197
  },
  "hsl": {
    "h": 256.154,
    "s": 47.273,
    "l": 56.863
  },
  "oklch": {
    "l": 0.55662,
    "c": 0.15596,
    "h": 293.1
  },
  "luminance": 0.15925
}

Semantic roles & 50–950 ramp

primary
#795DC5
secondary
#C9D4AA
accent
#D751B3
background
#FAF8FD
surface
#F4F0FA
border
#CECBD3
text
#100C14
muted
#7F7D83

Preview Lab

Preview with #795DC5

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

Preview Lab → · Contrast checker → · Palette generator →

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