#795BD8#795BD8

#795BD8 is a mid, vivid violet. Relative luminance 0.165; OKLCH L 56.6% C 0.183 H 290.4°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#795BD8
RGBrgb(121, 91, 216)
HSLhsl(254, 62%, 60%)
HSVhsv(254, 58%, 85%)
CMYKcmyk(44%, 57.9%, 0%, 15.3%)
CIE-LABlab(47.63, 41.84, -60.30)
CIE-LCHlch(47.63, 73.39, 304.76°)
OKLaboklab(56.61% 0.0638 -0.1719)
OKLCHoklch(56.61% 0.183 290.4)
XYZxyz(24.0174, 16.5042, 66.8726)
Luminance0.1651 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795BD8 #BAD85B
analogous
#5B7BD8 #795BD8 #B75BD8
triadic
#795BD8 #D8795B #5BD879
tetradic
#795BD8 #D85B7B #BAD85B #5BD8B7
square
#795BD8 #D85B7B #BAD85B #5BD8B7
split-complementary
#795BD8 #D8B75B #7BD85B
monochromatic
#3F2395 #542FC7 #795BD8 #A18CE4 #CABEF0

Accessibility & contrast

On white

4.88
#795BD8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#795BD8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795BD8
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795BD8#FFFFFF#000000##FFFFFF
##795BD81.004.884.304.88
#FFFFFF4.881.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073DC
Deuteranopia (green-blind)
#0C6ED5
Tritanopia (blue-blind)
#5D7791
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #795bd8;
/* rgb */ color: rgb(121, 91, 216);
/* oklch */ color: oklch(56.6% 0.183 290.4);
Tailwind
colors: {
  custom: {
    50: '#a68ae5',
    500: '#795bd8',
    950: '#000000',
  },
}
SCSS
$custom: #795bd8;
$custom-light: #a68ae5;
$custom-dark: #000000;
JSON
{
  "hex": "#795bd8",
  "rgb": {
    "r": 121,
    "g": 91,
    "b": 216
  },
  "hsl": {
    "h": 254.4,
    "s": 61.576,
    "l": 60.196
  },
  "oklch": {
    "l": 0.56605,
    "c": 0.18342,
    "h": 290.4
  },
  "luminance": 0.16505
}

Semantic roles & 50–950 ramp

primary
#795BD8
secondary
#D4DFAF
accent
#C91CA0
background
#FAF8FE
surface
#F4F0FC
border
#CECBD5
text
#100C16
muted
#7F7D84

Preview Lab

Preview with #795BD8

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

Preview Lab → · Contrast checker → · Palette generator →

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