#795AEF#795AEF

#795AEF is a mid, highly saturated violet. Relative luminance 0.176; OKLCH L 58.1% C 0.213 H 287.4°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#795AEF
RGBrgb(121, 90, 239)
HSLhsl(252, 82%, 65%)
HSVhsv(252, 62%, 94%)
CMYKcmyk(49.4%, 62.3%, 0%, 6.3%)
CIE-LABlab(49.02, 48.91, -71.05)
CIE-LCHlch(49.02, 86.26, 304.54°)
OKLaboklab(58.13% 0.0637 -0.2036)
OKLCHoklch(58.13% 0.213 287.4)
XYZxyz(27.1167, 17.6080, 83.6145)
Luminance0.1761 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795AEF #D0EF5A
analogous
#5A86EF #795AEF #C35AEF
triadic
#795AEF #EF795A #5AEF79
tetradic
#795AEF #EF5A86 #D0EF5A #5AEFC3
square
#795AEF #EF5A86 #D0EF5A #5AEFC3
split-complementary
#795AEF #EFC35A #86EF5A
monochromatic
#3612BC #4C22EA #795AEF #A692F4 #D4CAFA

Accessibility & contrast

On white

4.64
#795AEF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#795AEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #795AEF
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795AEF#FFFFFF#000000##FFFFFF
##795AEF1.004.644.524.64
#FFFFFF4.641.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0078F4
Deuteranopia (green-blind)
#0070EC
Tritanopia (blue-blind)
#4F7E9C
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #795aef;
/* rgb */ color: rgb(121, 90, 239);
/* oklch */ color: oklch(58.1% 0.213 287.4);
Tailwind
colors: {
  custom: {
    50: '#a88af5',
    500: '#795aef',
    950: '#000000',
  },
}
SCSS
$custom: #795aef;
$custom-light: #a88af5;
$custom-dark: #000000;
JSON
{
  "hex": "#795aef",
  "rgb": {
    "r": 121,
    "g": 90,
    "b": 239
  },
  "hsl": {
    "h": 252.483,
    "s": 82.32,
    "l": 64.51
  },
  "oklch": {
    "l": 0.58126,
    "c": 0.21331,
    "h": 287.4
  },
  "luminance": 0.17609
}

Semantic roles & 50–950 ramp

primary
#795AEF
secondary
#E1ECB9
accent
#DF07B2
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #795AEF

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

Preview Lab → · Contrast checker → · Palette generator →

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