#795BF6#795BF6

#795BF6 is a mid, highly saturated violet. Relative luminance 0.182; OKLCH L 58.8% C 0.221 H 286.4°. Best body text is #000000 at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#795BF6
RGBrgb(121, 91, 246)
HSLhsl(252, 90%, 66%)
HSVhsv(252, 63%, 96%)
CMYKcmyk(50.8%, 63%, 0%, 3.5%)
CIE-LABlab(49.74, 50.35, -73.80)
CIE-LCHlch(49.74, 89.34, 304.31°)
OKLaboklab(58.81% 0.0621 -0.2116)
OKLCHoklch(58.81% 0.221 286.4)
XYZxyz(28.2559, 18.1995, 89.1949)
Luminance0.1820 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795BF6 #D8F65B
analogous
#5B8AF6 #795BF6 #C65BF6
triadic
#795BF6 #F6795B #5BF679
tetradic
#795BF6 #F65B8A #D8F65B #5BF6C6
square
#795BF6 #F65B8A #D8F65B #5BF6C6
split-complementary
#795BF6 #F6C65B #8AF65B
monochromatic
#300BCB #4A21F3 #795BF6 #A895F9 #D8CFFC

Accessibility & contrast

On white

4.53
#795BF6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.64
#795BF6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #795BF6
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795BF6#FFFFFF#000000##000000
##795BF61.004.534.644.64
#FFFFFF4.531.0021.0021.00
#0000004.6421.001.001.00
##0000004.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AFB
Deuteranopia (green-blind)
#0072F3
Tritanopia (blue-blind)
#4981A0
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #795bf6;
/* rgb */ color: rgb(121, 91, 246);
/* oklch */ color: oklch(58.8% 0.221 286.4);
Tailwind
colors: {
  custom: {
    50: '#a98bfa',
    500: '#795bf6',
    950: '#000000',
  },
}
SCSS
$custom: #795bf6;
$custom-light: #a98bfa;
$custom-dark: #000000;
JSON
{
  "hex": "#795bf6",
  "rgb": {
    "r": 121,
    "g": 91,
    "b": 246
  },
  "hsl": {
    "h": 251.613,
    "s": 89.595,
    "l": 66.078
  },
  "oklch": {
    "l": 0.5881,
    "c": 0.22057,
    "h": 286.4
  },
  "luminance": 0.18201
}

Semantic roles & 50–950 ramp

primary
#795BF6
secondary
#E6F0BD
accent
#E600B9
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #795BF6

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

Preview Lab → · Contrast checker → · Palette generator →

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