#795BD1#795BD1

#795BD1 is a mid, vivid violet. Relative luminance 0.162; OKLCH L 56.1% C 0.174 H 291.5°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#795BD1
RGBrgb(121, 91, 209)
HSLhsl(255, 56%, 59%)
HSVhsv(255, 56%, 82%)
CMYKcmyk(42.1%, 56.5%, 0%, 18%)
CIE-LABlab(47.17, 39.88, -57.04)
CIE-LCHlch(47.17, 69.60, 304.96°)
OKLaboklab(56.12% 0.0639 -0.1624)
OKLCHoklch(56.12% 0.174 291.5)
XYZxyz(23.1317, 16.1499, 62.2077)
Luminance0.1615 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795BD1 #B3D15B
analogous
#5B78D1 #795BD1 #B45BD1
triadic
#795BD1 #D1795B #5BD179
tetradic
#795BD1 #D15B78 #B3D15B #5BD1B4
square
#795BD1 #D15B78 #B3D15B #5BD1B4
split-complementary
#795BD1 #D1B45B #78D15B
monochromatic
#40278B #5634BA #795BD1 #A08BDE #C7BBEC

Accessibility & contrast

On white

4.96
#795BD1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#795BD1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795BD1
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795BD1#FFFFFF#000000##FFFFFF
##795BD11.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1772D5
Deuteranopia (green-blind)
#216DCE
Tritanopia (blue-blind)
#60758D
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #795bd1;
/* rgb */ color: rgb(121, 91, 209);
/* oklch */ color: oklch(56.1% 0.174 291.5);
Tailwind
colors: {
  custom: {
    50: '#a58ae0',
    500: '#795bd1',
    950: '#000000',
  },
}
SCSS
$custom: #795bd1;
$custom-light: #a58ae0;
$custom-dark: #000000;
JSON
{
  "hex": "#795bd1",
  "rgb": {
    "r": 121,
    "g": 91,
    "b": 209
  },
  "hsl": {
    "h": 255.254,
    "s": 56.19,
    "l": 58.824
  },
  "oklch": {
    "l": 0.56121,
    "c": 0.17448,
    "h": 291.5
  },
  "luminance": 0.16151
}

Semantic roles & 50–950 ramp

primary
#795BD1
secondary
#CFDBAD
accent
#DF48B9
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #795BD1

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

Preview Lab → · Contrast checker → · Palette generator →

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