#795BD9#795BD9

#795BD9 is a mid, vivid violet. Relative luminance 0.166; OKLCH L 56.7% C 0.185 H 290.2°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#795BD9
RGBrgb(121, 91, 217)
HSLhsl(254, 62%, 60%)
HSVhsv(254, 58%, 85%)
CMYKcmyk(44.2%, 58.1%, 0%, 14.9%)
CIE-LABlab(47.70, 42.12, -60.76)
CIE-LCHlch(47.70, 73.93, 304.73°)
OKLaboklab(56.68% 0.0638 -0.1733)
OKLCHoklch(56.68% 0.185 290.2)
XYZxyz(24.1471, 16.5560, 67.5555)
Luminance0.1656 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795BD9 #BBD95B
analogous
#5B7CD9 #795BD9 #B85BD9
triadic
#795BD9 #D9795B #5BD979
tetradic
#795BD9 #D95B7C #BBD95B #5BD9B8
square
#795BD9 #D95B7C #BBD95B #5BD9B8
split-complementary
#795BD9 #D9B85B #7CD95B
monochromatic
#3E2397 #532EC8 #795BD9 #A28DE5 #CABEF0

Accessibility & contrast

On white

4.87
#795BD9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#795BD9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795BD9
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795BD9#FFFFFF#000000##FFFFFF
##795BD91.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073DD
Deuteranopia (green-blind)
#076ED6
Tritanopia (blue-blind)
#5C7791
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #795bd9;
/* rgb */ color: rgb(121, 91, 217);
/* oklch */ color: oklch(56.7% 0.185 290.2);
Tailwind
colors: {
  custom: {
    50: '#a68ae5',
    500: '#795bd9',
    950: '#000000',
  },
}
SCSS
$custom: #795bd9;
$custom-light: #a68ae5;
$custom-dark: #000000;
JSON
{
  "hex": "#795bd9",
  "rgb": {
    "r": 121,
    "g": 91,
    "b": 217
  },
  "hsl": {
    "h": 254.286,
    "s": 62.376,
    "l": 60.392
  },
  "oklch": {
    "l": 0.56675,
    "c": 0.18468,
    "h": 290.2
  },
  "luminance": 0.16557
}

Semantic roles & 50–950 ramp

primary
#795BD9
secondary
#D5E0B0
accent
#CA1BA1
background
#FAF8FE
surface
#F4F0FC
border
#CECBD5
text
#100C16
muted
#7F7D84

Preview Lab

Preview with #795BD9

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

Preview Lab → · Contrast checker → · Palette generator →

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