#795CD4#795CD4

#795CD4 is a mid, vivid violet. Relative luminance 0.165; OKLCH L 56.5% C 0.177 H 290.8°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#795CD4
RGBrgb(121, 92, 212)
HSLhsl(255, 58%, 60%)
HSVhsv(255, 57%, 83%)
CMYKcmyk(42.9%, 56.6%, 0%, 16.9%)
CIE-LABlab(47.59, 40.15, -58.08)
CIE-LCHlch(47.59, 70.61, 304.65°)
OKLaboklab(56.49% 0.0627 -0.1654)
OKLCHoklch(56.49% 0.177 290.8)
XYZxyz(23.5927, 16.4719, 64.2109)
Luminance0.1647 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795CD4 #B7D45C
analogous
#5C7BD4 #795CD4 #B55CD4
triadic
#795CD4 #D4795C #5CD479
tetradic
#795CD4 #D45C7B #B7D45C #5CD4B5
square
#795CD4 #D45C7B #B7D45C #5CD4B5
split-complementary
#795CD4 #D4B55C #7BD45C
monochromatic
#3F2690 #5533C0 #795CD4 #A18CE1 #C9BDEE

Accessibility & contrast

On white

4.89
#795CD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#795CD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795CD4
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795CD4#FFFFFF#000000##FFFFFF
##795CD41.004.894.294.89
#FFFFFF4.891.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1473D8
Deuteranopia (green-blind)
#1D6ED1
Tritanopia (blue-blind)
#5F768F
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #795cd4;
/* rgb */ color: rgb(121, 92, 212);
/* oklch */ color: oklch(56.5% 0.177 290.8);
Tailwind
colors: {
  custom: {
    50: '#a58be2',
    500: '#795cd4',
    950: '#000000',
  },
}
SCSS
$custom: #795cd4;
$custom-light: #a58be2;
$custom-dark: #000000;
JSON
{
  "hex": "#795cd4",
  "rgb": {
    "r": 121,
    "g": 92,
    "b": 212
  },
  "hsl": {
    "h": 254.5,
    "s": 58.252,
    "l": 59.608
  },
  "oklch": {
    "l": 0.56491,
    "c": 0.17692,
    "h": 290.8
  },
  "luminance": 0.16473
}

Semantic roles & 50–950 ramp

primary
#795CD4
secondary
#D2DDAF
accent
#E146BC
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #795CD4

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

Preview Lab → · Contrast checker → · Palette generator →

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