#795CD7#795CD7

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

Color values

HEX#795CD7
RGBrgb(121, 92, 215)
HSLhsl(254, 61%, 60%)
HSVhsv(254, 57%, 84%)
CMYKcmyk(43.7%, 57.2%, 0%, 15.7%)
CIE-LABlab(47.78, 40.99, -59.48)
CIE-LCHlch(47.78, 72.23, 304.57°)
OKLaboklab(56.7% 0.0627 -0.1695)
OKLCHoklch(56.7% 0.181 290.3)
XYZxyz(23.9746, 16.6247, 66.2225)
Luminance0.1663 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795CD7 #BAD75C
analogous
#5C7DD7 #795CD7 #B65CD7
triadic
#795CD7 #D7795C #5CD779
tetradic
#795CD7 #D75C7D #BAD75C #5CD7B6
square
#795CD7 #D75C7D #BAD75C #5CD7B6
split-complementary
#795CD7 #D7B65C #7DD75C
monochromatic
#3F2494 #5430C5 #795CD7 #A18DE3 #CABEEF

Accessibility & contrast

On white

4.86
#795CD7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#795CD7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795CD7
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795CD7#FFFFFF#000000##FFFFFF
##795CD71.004.864.334.86
#FFFFFF4.861.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0874DB
Deuteranopia (green-blind)
#156FD4
Tritanopia (blue-blind)
#5D7791
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #795cd7;
/* rgb */ color: rgb(121, 92, 215);
/* oklch */ color: oklch(56.7% 0.181 290.3);
Tailwind
colors: {
  custom: {
    50: '#a68be4',
    500: '#795cd7',
    950: '#000000',
  },
}
SCSS
$custom: #795cd7;
$custom-light: #a68be4;
$custom-dark: #000000;
JSON
{
  "hex": "#795cd7",
  "rgb": {
    "r": 121,
    "g": 92,
    "b": 215
  },
  "hsl": {
    "h": 254.146,
    "s": 60.591,
    "l": 60.196
  },
  "oklch": {
    "l": 0.56698,
    "c": 0.18076,
    "h": 290.3
  },
  "luminance": 0.16626
}

Semantic roles & 50–950 ramp

primary
#795CD7
secondary
#D4DFB0
accent
#C81DA0
background
#FAF8FE
surface
#F4F0FC
border
#CECBD5
text
#100C16
muted
#7F7D84

Preview Lab

Preview with #795CD7

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

Preview Lab → · Contrast checker → · Palette generator →

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