#795EC7#795EC7

#795EC7 is a mid, vivid violet. Relative luminance 0.162; OKLCH L 56.0% C 0.157 H 292.4°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#795EC7
RGBrgb(121, 94, 199)
HSLhsl(255, 48%, 57%)
HSVhsv(255, 53%, 78%)
CMYKcmyk(39.2%, 52.8%, 0%, 22%)
CIE-LABlab(47.23, 35.36, -51.21)
CIE-LCHlch(47.23, 62.23, 304.63°)
OKLaboklab(55.96% 0.0599 -0.1452)
OKLCHoklch(55.96% 0.157 292.4)
XYZxyz(22.1939, 16.1933, 55.9780)
Luminance0.1619 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795EC7 #ACC75E
analogous
#5E77C7 #795EC7 #AE5EC7
triadic
#795EC7 #C7795E #5EC779
tetradic
#795EC7 #C75E77 #ACC75E #5EC7AE
square
#795EC7 #C75E77 #ACC75E #5EC7AE
split-complementary
#795EC7 #C7AE5E #77C75E
monochromatic
#412C7F #593CAC #795EC7 #9F8BD7 #C5B9E7

Accessibility & contrast

On white

4.95
#795EC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#795EC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795EC7
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795EC7#FFFFFF#000000##FFFFFF
##795EC71.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3071CB
Deuteranopia (green-blind)
#366EC5
Tritanopia (blue-blind)
#657489
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #795ec7;
/* rgb */ color: rgb(121, 94, 199);
/* oklch */ color: oklch(56.0% 0.157 292.4);
Tailwind
colors: {
  custom: {
    50: '#a48cd8',
    500: '#795ec7',
    950: '#000000',
  },
}
SCSS
$custom: #795ec7;
$custom-light: #a48cd8;
$custom-dark: #000000;
JSON
{
  "hex": "#795ec7",
  "rgb": {
    "r": 121,
    "g": 94,
    "b": 199
  },
  "hsl": {
    "h": 255.429,
    "s": 48.387,
    "l": 57.451
  },
  "oklch": {
    "l": 0.55962,
    "c": 0.1571,
    "h": 292.4
  },
  "luminance": 0.16194
}

Semantic roles & 50–950 ramp

primary
#795EC7
secondary
#CBD6AB
accent
#D850B5
background
#FAF8FD
surface
#F4F0FA
border
#CECBD3
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #795EC7

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

Preview Lab → · Contrast checker → · Palette generator →

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