#795FD7#795FD7

#795FD7 is a mid, vivid violet. Relative luminance 0.172; OKLCH L 57.2% C 0.177 H 289.6°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#795FD7
RGBrgb(121, 95, 215)
HSLhsl(253, 60%, 61%)
HSVhsv(253, 56%, 84%)
CMYKcmyk(43.7%, 55.8%, 0%, 15.7%)
CIE-LABlab(48.45, 39.26, -58.40)
CIE-LCHlch(48.45, 70.37, 303.91°)
OKLaboklab(57.19% 0.0593 -0.1663)
OKLCHoklch(57.19% 0.177 289.6)
XYZxyz(24.2397, 17.1548, 66.3108)
Luminance0.1716 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795FD7 #BDD75F
analogous
#5F81D7 #795FD7 #B55FD7
triadic
#795FD7 #D7795F #5FD779
tetradic
#795FD7 #D75F81 #BDD75F #5FD7B5
square
#795FD7 #D75F81 #BDD75F #5FD7B5
split-complementary
#795FD7 #D7B55F #81D75F
monochromatic
#3E2696 #5232C7 #795FD7 #A290E3 #CBC1EF

Accessibility & contrast

On white

4.74
#795FD7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#795FD7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795FD7
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795FD7#FFFFFF#000000##FFFFFF
##795FD71.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A75DB
Deuteranopia (green-blind)
#1F70D4
Tritanopia (blue-blind)
#5D7992
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #795fd7;
/* rgb */ color: rgb(121, 95, 215);
/* oklch */ color: oklch(57.2% 0.177 289.6);
Tailwind
colors: {
  custom: {
    50: '#a58de4',
    500: '#795fd7',
    950: '#000000',
  },
}
SCSS
$custom: #795fd7;
$custom-light: #a58de4;
$custom-dark: #000000;
JSON
{
  "hex": "#795fd7",
  "rgb": {
    "r": 121,
    "g": 95,
    "b": 215
  },
  "hsl": {
    "h": 253,
    "s": 60,
    "l": 60.784
  },
  "oklch": {
    "l": 0.57192,
    "c": 0.17659,
    "h": 289.6
  },
  "luminance": 0.17156
}

Semantic roles & 50–950 ramp

primary
#795FD7
secondary
#D6E0B2
accent
#C81EA3
background
#FAF8FE
surface
#F4F0FC
border
#CECBD5
text
#100C16
muted
#7F7D84

Preview Lab

Preview with #795FD7

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

Preview Lab → · Contrast checker → · Palette generator →

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