#795CD2#795CD2

#795CD2 is a mid, vivid violet. Relative luminance 0.164; OKLCH L 56.4% C 0.174 H 291.1°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#795CD2
RGBrgb(121, 92, 210)
HSLhsl(255, 57%, 59%)
HSVhsv(255, 56%, 82%)
CMYKcmyk(42.4%, 56.2%, 0%, 17.6%)
CIE-LABlab(47.46, 39.59, -57.15)
CIE-LCHlch(47.46, 69.52, 304.71°)
OKLaboklab(56.35% 0.0627 -0.1627)
OKLCHoklch(56.35% 0.174 291.1)
XYZxyz(23.3420, 16.3717, 62.8905)
Luminance0.1637 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795CD2 #B5D25C
analogous
#5C7AD2 #795CD2 #B45CD2
triadic
#795CD2 #D2795C #5CD279
tetradic
#795CD2 #D25C7A #B5D25C #5CD2B4
square
#795CD2 #D25C7A #B5D25C #5CD2B4
split-complementary
#795CD2 #D2B45C #7AD25C
monochromatic
#40278D #5634BD #795CD2 #A08CDF #C8BCEC

Accessibility & contrast

On white

4.91
#795CD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#795CD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795CD2
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795CD2#FFFFFF#000000##FFFFFF
##795CD21.004.914.274.91
#FFFFFF4.911.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1973D6
Deuteranopia (green-blind)
#216ECF
Tritanopia (blue-blind)
#60768E
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #795cd2;
/* rgb */ color: rgb(121, 92, 210);
/* oklch */ color: oklch(56.4% 0.174 291.1);
Tailwind
colors: {
  custom: {
    50: '#a58be0',
    500: '#795cd2',
    950: '#000000',
  },
}
SCSS
$custom: #795cd2;
$custom-light: #a58be0;
$custom-dark: #000000;
JSON
{
  "hex": "#795cd2",
  "rgb": {
    "r": 121,
    "g": 92,
    "b": 210
  },
  "hsl": {
    "h": 254.746,
    "s": 56.731,
    "l": 59.216
  },
  "oklch": {
    "l": 0.56354,
    "c": 0.17434,
    "h": 291.1
  },
  "luminance": 0.16372
}

Semantic roles & 50–950 ramp

primary
#795CD2
secondary
#D1DCAE
accent
#E048BB
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #795CD2

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

Preview Lab → · Contrast checker → · Palette generator →

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