#795BD2#795BD2

#795BD2 is a mid, vivid violet. Relative luminance 0.162; OKLCH L 56.2% C 0.176 H 291.3°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#795BD2
RGBrgb(121, 91, 210)
HSLhsl(255, 57%, 59%)
HSVhsv(255, 57%, 82%)
CMYKcmyk(42.4%, 56.7%, 0%, 17.6%)
CIE-LABlab(47.24, 40.16, -57.51)
CIE-LCHlch(47.24, 70.15, 304.93°)
OKLaboklab(56.19% 0.0639 -0.1637)
OKLCHoklch(56.19% 0.176 291.3)
XYZxyz(23.2559, 16.1995, 62.8618)
Luminance0.1620 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795BD2 #B4D25B
analogous
#5B79D2 #795BD2 #B55BD2
triadic
#795BD2 #D2795B #5BD279
tetradic
#795BD2 #D25B79 #B4D25B #5BD2B5
square
#795BD2 #D25B79 #B4D25B #5BD2B5
split-complementary
#795BD2 #D2B55B #79D25B
monochromatic
#40268C #5634BC #795BD2 #A08BDF #C7BBEC

Accessibility & contrast

On white

4.95
#795BD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#795BD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795BD2
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795BD2#FFFFFF#000000##FFFFFF
##795BD21.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1472D6
Deuteranopia (green-blind)
#1F6ECF
Tritanopia (blue-blind)
#60758E
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #795bd2;
/* rgb */ color: rgb(121, 91, 210);
/* oklch */ color: oklch(56.2% 0.176 291.3);
Tailwind
colors: {
  custom: {
    50: '#a58ae0',
    500: '#795bd2',
    950: '#000000',
  },
}
SCSS
$custom: #795bd2;
$custom-light: #a58ae0;
$custom-dark: #000000;
JSON
{
  "hex": "#795bd2",
  "rgb": {
    "r": 121,
    "g": 91,
    "b": 210
  },
  "hsl": {
    "h": 255.126,
    "s": 56.938,
    "l": 59.02
  },
  "oklch": {
    "l": 0.56189,
    "c": 0.17576,
    "h": 291.3
  },
  "luminance": 0.162
}

Semantic roles & 50–950 ramp

primary
#795BD2
secondary
#D0DCAD
accent
#E048BA
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #795BD2

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

Preview Lab → · Contrast checker → · Palette generator →

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