#795DFB#795DFB

#795DFB is a mid, highly saturated violet. Relative luminance 0.189; OKLCH L 59.5% C 0.224 H 285.5°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#795DFB
RGBrgb(121, 93, 251)
HSLhsl(251, 95%, 67%)
HSVhsv(251, 63%, 98%)
CMYKcmyk(51.8%, 62.9%, 0%, 1.6%)
CIE-LABlab(50.52, 50.68, -75.31)
CIE-LCHlch(50.52, 90.77, 303.94°)
OKLaboklab(59.49% 0.0598 -0.2161)
OKLCHoklch(59.49% 0.224 285.5)
XYZxyz(29.2069, 18.8571, 93.3489)
Luminance0.1886 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795DFB #DFFB5D
analogous
#5D90FB #795DFB #C85DFB
triadic
#795DFB #FB795D #5DFB79
tetradic
#795DFB #FB5D90 #DFFB5D #5DFBC8
square
#795DFB #FB5D90 #DFFB5D #5DFBC8
split-complementary
#795DFB #FBC85D #90FB5D
monochromatic
#2B05D8 #4821FA #795DFB #AA99FC #DCD4FE

Accessibility & contrast

On white

4.40
#795DFB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#795DFB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #795DFB
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795DFB#FFFFFF#000000##000000
##795DFB1.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DFF
Deuteranopia (green-blind)
#0073F8
Tritanopia (blue-blind)
#4584A4
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #795dfb;
/* rgb */ color: rgb(121, 93, 251);
/* oklch */ color: oklch(59.5% 0.224 285.5);
Tailwind
colors: {
  custom: {
    50: '#aa8cfe',
    500: '#795dfb',
    950: '#000000',
  },
}
SCSS
$custom: #795dfb;
$custom-light: #aa8cfe;
$custom-dark: #000000;
JSON
{
  "hex": "#795dfb",
  "rgb": {
    "r": 121,
    "g": 93,
    "b": 251
  },
  "hsl": {
    "h": 250.633,
    "s": 95.181,
    "l": 67.451
  },
  "oklch": {
    "l": 0.59494,
    "c": 0.2242,
    "h": 285.5
  },
  "luminance": 0.18859
}

Semantic roles & 50–950 ramp

primary
#795DFB
secondary
#EAF3C1
accent
#E600BD
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C18
muted
#807D86

Preview Lab

Preview with #795DFB

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

Preview Lab → · Contrast checker → · Palette generator →

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