#795CD9#795CD9

#795CD9 is a mid, vivid violet. Relative luminance 0.167; OKLCH L 56.8% C 0.183 H 290.0°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#795CD9
RGBrgb(121, 92, 217)
HSLhsl(254, 62%, 61%)
HSVhsv(254, 58%, 85%)
CMYKcmyk(44.2%, 57.6%, 0%, 14.9%)
CIE-LABlab(47.92, 41.55, -60.41)
CIE-LCHlch(47.92, 73.32, 304.52°)
OKLaboklab(56.84% 0.0627 -0.1723)
OKLCHoklch(56.84% 0.183 290)
XYZxyz(24.2332, 16.7281, 67.5842)
Luminance0.1673 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795CD9 #BCD95C
analogous
#5C7DD9 #795CD9 #B75CD9
triadic
#795CD9 #D9795C #5CD979
tetradic
#795CD9 #D95C7D #BCD95C #5CD9B7
square
#795CD9 #D95C7D #BCD95C #5CD9B7
split-complementary
#795CD9 #D9B75C #7DD95C
monochromatic
#3E2397 #532FC9 #795CD9 #A28EE5 #CBBFF0

Accessibility & contrast

On white

4.83
#795CD9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#795CD9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795CD9
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795CD9#FFFFFF#000000##FFFFFF
##795CD91.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074DD
Deuteranopia (green-blind)
#0D6FD6
Tritanopia (blue-blind)
#5C7892
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #795cd9;
/* rgb */ color: rgb(121, 92, 217);
/* oklch */ color: oklch(56.8% 0.183 290.0);
Tailwind
colors: {
  custom: {
    50: '#a68be5',
    500: '#795cd9',
    950: '#000000',
  },
}
SCSS
$custom: #795cd9;
$custom-light: #a68be5;
$custom-dark: #000000;
JSON
{
  "hex": "#795cd9",
  "rgb": {
    "r": 121,
    "g": 92,
    "b": 217
  },
  "hsl": {
    "h": 253.92,
    "s": 62.189,
    "l": 60.588
  },
  "oklch": {
    "l": 0.56837,
    "c": 0.18331,
    "h": 290
  },
  "luminance": 0.16729
}

Semantic roles & 50–950 ramp

primary
#795CD9
secondary
#D5E0B1
accent
#CA1CA1
background
#FAF8FE
surface
#F4F0FC
border
#CECBD5
text
#100C16
muted
#7F7D84

Preview Lab

Preview with #795CD9

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

Preview Lab → · Contrast checker → · Palette generator →

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