#795DF7#795DF7

#795DF7 is a mid, highly saturated violet. Relative luminance 0.186; OKLCH L 59.2% C 0.219 H 285.9°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#795DF7
RGBrgb(121, 93, 247)
HSLhsl(251, 91%, 67%)
HSVhsv(251, 62%, 97%)
CMYKcmyk(51%, 62.3%, 0%, 3.1%)
CIE-LABlab(50.22, 49.53, -73.56)
CIE-LCHlch(50.22, 88.68, 303.96°)
OKLaboklab(59.19% 0.0601 -0.2109)
OKLCHoklch(59.19% 0.219 285.9)
XYZxyz(28.5830, 18.6076, 90.0632)
Luminance0.1861 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795DF7 #DBF75D
analogous
#5D8EF7 #795DF7 #C65DF7
triadic
#795DF7 #F7795D #5DF779
tetradic
#795DF7 #F75D8E #DBF75D #5DF7C6
square
#795DF7 #F75D8E #DBF75D #5DF7C6
split-complementary
#795DF7 #F7C65D #8EF75D
monochromatic
#2E0ACF #4923F4 #795DF7 #A997FA #D9D2FD

Accessibility & contrast

On white

4.45
#795DF7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#795DF7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #795DF7
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795DF7#FFFFFF#000000##000000
##795DF71.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CFC
Deuteranopia (green-blind)
#0073F4
Tritanopia (blue-blind)
#4882A2
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #795df7;
/* rgb */ color: rgb(121, 93, 247);
/* oklch */ color: oklch(59.2% 0.219 285.9);
Tailwind
colors: {
  custom: {
    50: '#a98cfb',
    500: '#795df7',
    950: '#000000',
  },
}
SCSS
$custom: #795df7;
$custom-light: #a98cfb;
$custom-dark: #000000;
JSON
{
  "hex": "#795df7",
  "rgb": {
    "r": 121,
    "g": 93,
    "b": 247
  },
  "hsl": {
    "h": 250.909,
    "s": 90.588,
    "l": 66.667
  },
  "oklch": {
    "l": 0.59187,
    "c": 0.21935,
    "h": 285.9
  },
  "luminance": 0.18609
}

Semantic roles & 50–950 ramp

primary
#795DF7
secondary
#E8F1BF
accent
#E600BC
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C18
muted
#807D86

Preview Lab

Preview with #795DF7

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

Preview Lab → · Contrast checker → · Palette generator →

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