#795AC7#795AC7

#795AC7 is a mid, vivid violet. Relative luminance 0.155; OKLCH L 55.3% C 0.163 H 293.5°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#795AC7
RGBrgb(121, 90, 199)
HSLhsl(257, 49%, 57%)
HSVhsv(257, 55%, 78%)
CMYKcmyk(39.2%, 54.8%, 0%, 22%)
CIE-LABlab(46.31, 37.70, -52.67)
CIE-LCHlch(46.31, 64.77, 305.59°)
OKLaboklab(55.28% 0.0649 -0.1495)
OKLCHoklch(55.28% 0.163 293.5)
XYZxyz(21.8474, 15.5003, 55.8625)
Luminance0.1550 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795AC7 #A8C75A
analogous
#5A72C7 #795AC7 #B05AC7
triadic
#795AC7 #C7795A #5AC779
tetradic
#795AC7 #C75A72 #A8C75A #5AC7B0
square
#795AC7 #C75A72 #A8C75A #5AC7B0
split-complementary
#795AC7 #C7B05A #72C75A
monochromatic
#422A7C #5A3AAA #795AC7 #9E88D7 #C3B5E6

Accessibility & contrast

On white

5.12
#795AC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#795AC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795AC7
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795AC7#FFFFFF#000000##FFFFFF
##795AC71.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#266FCB
Deuteranopia (green-blind)
#2F6CC5
Tritanopia (blue-blind)
#657188
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #795ac7;
/* rgb */ color: rgb(121, 90, 199);
/* oklch */ color: oklch(55.3% 0.163 293.5);
Tailwind
colors: {
  custom: {
    50: '#a489d9',
    500: '#795ac7',
    950: '#000000',
  },
}
SCSS
$custom: #795ac7;
$custom-light: #a489d9;
$custom-dark: #000000;
JSON
{
  "hex": "#795ac7",
  "rgb": {
    "r": 121,
    "g": 90,
    "b": 199
  },
  "hsl": {
    "h": 257.064,
    "s": 49.321,
    "l": 56.667
  },
  "oklch": {
    "l": 0.55284,
    "c": 0.16302,
    "h": 293.5
  },
  "luminance": 0.15501
}

Semantic roles & 50–950 ramp

primary
#795AC7
secondary
#C8D5A8
accent
#D94FB2
background
#FAF8FD
surface
#F4F0FA
border
#CECBD3
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #795AC7

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

Preview Lab → · Contrast checker → · Palette generator →

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