#795AEC#795AEC

#795AEC is a mid, highly saturated violet. Relative luminance 0.174; OKLCH L 57.9% C 0.210 H 287.8°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#795AEC
RGBrgb(121, 90, 236)
HSLhsl(253, 79%, 64%)
HSVhsv(253, 62%, 93%)
CMYKcmyk(48.7%, 61.9%, 0%, 7.5%)
CIE-LABlab(48.80, 48.06, -69.72)
CIE-LCHlch(48.80, 84.68, 304.58°)
OKLaboklab(57.9% 0.064 -0.1996)
OKLCHoklch(57.9% 0.21 287.8)
XYZxyz(26.6772, 17.4322, 81.2997)
Luminance0.1743 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795AEC #CDEC5A
analogous
#5A84EC #795AEC #C25AEC
triadic
#795AEC #EC795A #5AEC79
tetradic
#795AEC #EC5A84 #CDEC5A #5AECC2
square
#795AEC #EC5A84 #CDEC5A #5AECC2
split-complementary
#795AEC #ECC25A #84EC5A
monochromatic
#3715B7 #4C23E6 #795AEC #A691F2 #D2C8F9

Accessibility & contrast

On white

4.68
#795AEC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.49
#795AEC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795AEC
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795AEC#FFFFFF#000000##FFFFFF
##795AEC1.004.684.494.68
#FFFFFF4.681.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077F1
Deuteranopia (green-blind)
#0070E9
Tritanopia (blue-blind)
#517D9B
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #795aec;
/* rgb */ color: rgb(121, 90, 236);
/* oklch */ color: oklch(57.9% 0.210 287.8);
Tailwind
colors: {
  custom: {
    50: '#a88af3',
    500: '#795aec',
    950: '#000000',
  },
}
SCSS
$custom: #795aec;
$custom-light: #a88af3;
$custom-dark: #000000;
JSON
{
  "hex": "#795aec",
  "rgb": {
    "r": 121,
    "g": 90,
    "b": 236
  },
  "hsl": {
    "h": 252.74,
    "s": 79.348,
    "l": 63.922
  },
  "oklch": {
    "l": 0.579,
    "c": 0.20964,
    "h": 287.8
  },
  "luminance": 0.17433
}

Semantic roles & 50–950 ramp

primary
#795AEC
secondary
#E0EBB7
accent
#DC0AAF
background
#FAF8FF
surface
#F5F0FE
border
#CFCBD6
text
#110C17
muted
#807D85

Preview Lab

Preview with #795AEC

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

Preview Lab → · Contrast checker → · Palette generator →

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