#795EF5#795EF5

#795EF5 is a mid, highly saturated violet. Relative luminance 0.187; OKLCH L 59.2% C 0.216 H 286.0°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#795EF5
RGBrgb(121, 94, 245)
HSLhsl(251, 88%, 66%)
HSVhsv(251, 62%, 96%)
CMYKcmyk(50.6%, 61.6%, 0%, 3.9%)
CIE-LABlab(50.29, 48.40, -72.34)
CIE-LCHlch(50.29, 87.04, 303.79°)
OKLaboklab(59.19% 0.0593 -0.2074)
OKLCHoklch(59.19% 0.216 286)
XYZxyz(28.3644, 18.6615, 88.4760)
Luminance0.1866 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795EF5 #DAF55E
analogous
#5E8FF5 #795EF5 #C45EF5
triadic
#795EF5 #F5795E #5EF579
tetradic
#795EF5 #F55E8F #DAF55E #5EF5C4
square
#795EF5 #F55E8F #DAF55E #5EF5C4
split-complementary
#795EF5 #F5C45E #8FF55E
monochromatic
#2F0DCC #4924F1 #795EF5 #A998F9 #D9D1FC

Accessibility & contrast

On white

4.44
#795EF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#795EF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #795EF5
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795EF5#FFFFFF#000000##000000
##795EF51.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CFA
Deuteranopia (green-blind)
#0073F2
Tritanopia (blue-blind)
#4A82A1
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #795ef5;
/* rgb */ color: rgb(121, 94, 245);
/* oklch */ color: oklch(59.2% 0.216 286.0);
Tailwind
colors: {
  custom: {
    50: '#a98df9',
    500: '#795ef5',
    950: '#000000',
  },
}
SCSS
$custom: #795ef5;
$custom-light: #a98df9;
$custom-dark: #000000;
JSON
{
  "hex": "#795ef5",
  "rgb": {
    "r": 121,
    "g": 94,
    "b": 245
  },
  "hsl": {
    "h": 250.728,
    "s": 88.304,
    "l": 66.471
  },
  "oklch": {
    "l": 0.59188,
    "c": 0.21568,
    "h": 286
  },
  "luminance": 0.18663
}

Semantic roles & 50–950 ramp

primary
#795EF5
secondary
#E7F0BF
accent
#E501BC
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #795EF5

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

Preview Lab → · Contrast checker → · Palette generator →

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