#795DC7#795DC7

#795DC7 is a mid, vivid violet. Relative luminance 0.160; OKLCH L 55.8% C 0.159 H 292.7°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#795DC7
RGBrgb(121, 93, 199)
HSLhsl(256, 49%, 57%)
HSVhsv(256, 53%, 78%)
CMYKcmyk(39.2%, 53.3%, 0%, 22%)
CIE-LABlab(47.00, 35.95, -51.58)
CIE-LCHlch(47.00, 62.87, 304.88°)
OKLaboklab(55.79% 0.0612 -0.1463)
OKLCHoklch(55.79% 0.159 292.7)
XYZxyz(22.1056, 16.0166, 55.9486)
Luminance0.1602 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795DC7 #ABC75D
analogous
#5D76C7 #795DC7 #AE5DC7
triadic
#795DC7 #C7795D #5DC779
tetradic
#795DC7 #C75D76 #ABC75D #5DC7AE
square
#795DC7 #C75D76 #ABC75D #5DC7AE
split-complementary
#795DC7 #C7AE5D #76C75D
monochromatic
#412C7E #593BAC #795DC7 #9F8AD7 #C4B8E6

Accessibility & contrast

On white

5.00
#795DC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#795DC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795DC7
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795DC7#FFFFFF#000000##FFFFFF
##795DC71.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E71CB
Deuteranopia (green-blind)
#346DC5
Tritanopia (blue-blind)
#657389
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #795dc7;
/* rgb */ color: rgb(121, 93, 199);
/* oklch */ color: oklch(55.8% 0.159 292.7);
Tailwind
colors: {
  custom: {
    50: '#a48bd9',
    500: '#795dc7',
    950: '#000000',
  },
}
SCSS
$custom: #795dc7;
$custom-light: #a48bd9;
$custom-dark: #000000;
JSON
{
  "hex": "#795dc7",
  "rgb": {
    "r": 121,
    "g": 93,
    "b": 199
  },
  "hsl": {
    "h": 255.849,
    "s": 48.624,
    "l": 57.255
  },
  "oklch": {
    "l": 0.55791,
    "c": 0.15859,
    "h": 292.7
  },
  "luminance": 0.16017
}

Semantic roles & 50–950 ramp

primary
#795DC7
secondary
#CAD5AA
accent
#D850B4
background
#FAF8FD
surface
#F4F0FA
border
#CECBD3
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #795DC7

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

Preview Lab → · Contrast checker → · Palette generator →

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