#795AE2#795AE2

#795AE2 is a mid, vivid violet. Relative luminance 0.169; OKLCH L 57.2% C 0.197 H 289.1°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#795AE2
RGBrgb(121, 90, 226)
HSLhsl(254, 70%, 62%)
HSVhsv(254, 60%, 89%)
CMYKcmyk(46.5%, 60.2%, 0%, 11.4%)
CIE-LABlab(48.09, 45.23, -65.23)
CIE-LCHlch(48.09, 79.37, 304.74°)
OKLaboklab(57.16% 0.0646 -0.1864)
OKLCHoklch(57.16% 0.197 289.1)
XYZxyz(25.2649, 16.8673, 73.8613)
Luminance0.1687 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795AE2 #C3E25A
analogous
#5A7FE2 #795AE2 #BD5AE2
triadic
#795AE2 #E2795A #5AE279
tetradic
#795AE2 #E25A7F #C3E25A #5AE2BD
square
#795AE2 #E25A7F #C3E25A #5AE2BD
split-complementary
#795AE2 #E2BD5A #7FE25A
monochromatic
#3C1DA5 #4F26D9 #795AE2 #A38EEB #CEC2F4

Accessibility & contrast

On white

4.80
#795AE2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#795AE2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795AE2
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795AE2#FFFFFF#000000##FFFFFF
##795AE21.004.804.374.80
#FFFFFF4.801.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075E6
Deuteranopia (green-blind)
#006FDF
Tritanopia (blue-blind)
#577995
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #795ae2;
/* rgb */ color: rgb(121, 90, 226);
/* oklch */ color: oklch(57.2% 0.197 289.1);
Tailwind
colors: {
  custom: {
    50: '#a78aec',
    500: '#795ae2',
    950: '#000000',
  },
}
SCSS
$custom: #795ae2;
$custom-light: #a78aec;
$custom-dark: #000000;
JSON
{
  "hex": "#795ae2",
  "rgb": {
    "r": 121,
    "g": 90,
    "b": 226
  },
  "hsl": {
    "h": 253.676,
    "s": 70.103,
    "l": 61.961
  },
  "oklch": {
    "l": 0.5716,
    "c": 0.19731,
    "h": 289.1
  },
  "luminance": 0.16868
}

Semantic roles & 50–950 ramp

primary
#795AE2
secondary
#DAE5B3
accent
#D213A7
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100C16
muted
#7F7D84

Preview Lab

Preview with #795AE2

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

Preview Lab → · Contrast checker → · Palette generator →

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