#795BD6#795BD6

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

Color values

HEX#795BD6
RGBrgb(121, 91, 214)
HSLhsl(255, 60%, 60%)
HSVhsv(255, 57%, 84%)
CMYKcmyk(43.5%, 57.5%, 0%, 16.1%)
CIE-LABlab(47.50, 41.28, -59.37)
CIE-LCHlch(47.50, 72.31, 304.81°)
OKLaboklab(56.47% 0.0639 -0.1692)
OKLCHoklch(56.47% 0.181 290.7)
XYZxyz(23.7605, 16.4014, 65.5192)
Luminance0.1640 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795BD6 #B8D65B
analogous
#5B7BD6 #795BD6 #B65BD6
triadic
#795BD6 #D6795B #5BD679
tetradic
#795BD6 #D65B7B #B8D65B #5BD6B6
square
#795BD6 #D65B7B #B8D65B #5BD6B6
split-complementary
#795BD6 #D6B65B #7BD65B
monochromatic
#3F2592 #5431C3 #795BD6 #A18CE2 #C9BDEE

Accessibility & contrast

On white

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

On black

4.28
#795BD6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##795BD6#FFFFFF#000000##FFFFFF
##795BD61.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0573DA
Deuteranopia (green-blind)
#146ED3
Tritanopia (blue-blind)
#5E7690
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #795bd6;
/* rgb */ color: rgb(121, 91, 214);
/* oklch */ color: oklch(56.5% 0.181 290.7);
Tailwind
colors: {
  custom: {
    50: '#a68ae3',
    500: '#795bd6',
    950: '#000000',
  },
}
SCSS
$custom: #795bd6;
$custom-light: #a68ae3;
$custom-dark: #000000;
JSON
{
  "hex": "#795bd6",
  "rgb": {
    "r": 121,
    "g": 91,
    "b": 214
  },
  "hsl": {
    "h": 254.634,
    "s": 60,
    "l": 59.804
  },
  "oklch": {
    "l": 0.56465,
    "c": 0.18087,
    "h": 290.7
  },
  "luminance": 0.16402
}

Semantic roles & 50–950 ramp

primary
#795BD6
secondary
#D3DEAF
accent
#E345BC
background
#FAF8FE
surface
#F4F0FC
border
#CECBD5
text
#100C16
muted
#7F7D84

Preview Lab

Preview with #795BD6

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

Preview Lab → · Contrast checker → · Palette generator →

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