#795CD1#795CD1

#795CD1 is a mid, vivid violet. Relative luminance 0.163; OKLCH L 56.3% C 0.173 H 291.2°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#795CD1
RGBrgb(121, 92, 209)
HSLhsl(255, 56%, 59%)
HSVhsv(255, 56%, 82%)
CMYKcmyk(42.1%, 56%, 0%, 18%)
CIE-LABlab(47.39, 39.31, -56.68)
CIE-LCHlch(47.39, 68.98, 304.74°)
OKLaboklab(56.29% 0.0627 -0.1613)
OKLCHoklch(56.29% 0.173 291.2)
XYZxyz(23.2178, 16.3220, 62.2364)
Luminance0.1632 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795CD1 #B4D15C
analogous
#5C7AD1 #795CD1 #B45CD1
triadic
#795CD1 #D1795C #5CD179
tetradic
#795CD1 #D15C7A #B4D15C #5CD1B4
square
#795CD1 #D15C7A #B4D15C #5CD1B4
split-complementary
#795CD1 #D1B45C #7AD15C
monochromatic
#40278B #5635BB #795CD1 #A08CDE #C7BBEC

Accessibility & contrast

On white

4.92
#795CD1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#795CD1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795CD1
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795CD1#FFFFFF#000000##FFFFFF
##795CD11.004.924.264.92
#FFFFFF4.921.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B72D5
Deuteranopia (green-blind)
#236ECE
Tritanopia (blue-blind)
#60758E
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #795cd1;
/* rgb */ color: rgb(121, 92, 209);
/* oklch */ color: oklch(56.3% 0.173 291.2);
Tailwind
colors: {
  custom: {
    50: '#a58be0',
    500: '#795cd1',
    950: '#000000',
  },
}
SCSS
$custom: #795cd1;
$custom-light: #a58be0;
$custom-dark: #000000;
JSON
{
  "hex": "#795cd1",
  "rgb": {
    "r": 121,
    "g": 92,
    "b": 209
  },
  "hsl": {
    "h": 254.872,
    "s": 55.981,
    "l": 59.02
  },
  "oklch": {
    "l": 0.56286,
    "c": 0.17307,
    "h": 291.2
  },
  "luminance": 0.16323
}

Semantic roles & 50–950 ramp

primary
#795CD1
secondary
#D0DBAD
accent
#DF49BA
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #795CD1

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

Preview Lab → · Contrast checker → · Palette generator →

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