#795BD5#795BD5

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

Color values

HEX#795BD5
RGBrgb(121, 91, 213)
HSLhsl(255, 59%, 60%)
HSVhsv(255, 57%, 84%)
CMYKcmyk(43.2%, 57.3%, 0%, 16.5%)
CIE-LABlab(47.43, 41.00, -58.91)
CIE-LCHlch(47.43, 71.77, 304.84°)
OKLaboklab(56.4% 0.0639 -0.1679)
OKLCHoklch(56.4% 0.18 290.8)
XYZxyz(23.6332, 16.3504, 64.8486)
Luminance0.1635 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795BD5 #B7D55B
analogous
#5B7AD5 #795BD5 #B65BD5
triadic
#795BD5 #D5795B #5BD579
tetradic
#795BD5 #D55B7A #B7D55B #5BD5B6
square
#795BD5 #D55B7A #B7D55B #5BD5B6
split-complementary
#795BD5 #D5B65B #7AD55B
monochromatic
#3F2591 #5532C1 #795BD5 #A18CE1 #C9BCEE

Accessibility & contrast

On white

4.92
#795BD5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #795BD5
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795BD5#FFFFFF#000000##FFFFFF
##795BD51.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A73D9
Deuteranopia (green-blind)
#176ED2
Tritanopia (blue-blind)
#5E768F
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #795bd5;
/* rgb */ color: rgb(121, 91, 213);
/* oklch */ color: oklch(56.4% 0.180 290.8);
Tailwind
colors: {
  custom: {
    50: '#a58ae3',
    500: '#795bd5',
    950: '#000000',
  },
}
SCSS
$custom: #795bd5;
$custom-light: #a58ae3;
$custom-dark: #000000;
JSON
{
  "hex": "#795bd5",
  "rgb": {
    "r": 121,
    "g": 91,
    "b": 213
  },
  "hsl": {
    "h": 254.754,
    "s": 59.223,
    "l": 59.608
  },
  "oklch": {
    "l": 0.56396,
    "c": 0.1796,
    "h": 290.8
  },
  "luminance": 0.16351
}

Semantic roles & 50–950 ramp

primary
#795BD5
secondary
#D2DEAE
accent
#E245BC
background
#FAF8FE
surface
#F4F0FC
border
#CECBD5
text
#100C15
muted
#7F7D84

Preview Lab

Preview with #795BD5

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

Preview Lab → · Contrast checker → · Palette generator →

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