#795EB7#795EB7

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

Color values

HEX#795EB7
RGBrgb(121, 94, 183)
HSLhsl(258, 38%, 54%)
HSVhsv(258, 49%, 72%)
CMYKcmyk(33.9%, 48.6%, 0%, 28.2%)
CIE-LABlab(46.30, 31.01, -43.42)
CIE-LCHlch(46.30, 53.36, 305.53°)
OKLaboklab(54.97% 0.0586 -0.1224)
OKLCHoklch(54.97% 0.136 295.6)
XYZxyz(20.4330, 15.4889, 46.7037)
Luminance0.1549 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795EB7 #9CB75E
analogous
#5E70B7 #795EB7 #A55EB7
triadic
#795EB7 #B7795E #5EB779
tetradic
#795EB7 #B75E70 #9CB75E #5EB7A5
square
#795EB7 #B75E70 #9CB75E #5EB7A5
split-complementary
#795EB7 #B7A55E #70B75E
monochromatic
#42306B #5C4395 #795EB7 #9C88CA #BFB3DD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##795EB7#FFFFFF#000000##FFFFFF
##795EB71.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)
#3F6EBA
Deuteranopia (green-blind)
#446CB5
Tritanopia (blue-blind)
#6B6F82
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #795eb7;
/* rgb */ color: rgb(121, 94, 183);
/* oklch */ color: oklch(55.0% 0.136 295.6);
Tailwind
colors: {
  custom: {
    50: '#a28ccd',
    500: '#795eb7',
    950: '#000000',
  },
}
SCSS
$custom: #795eb7;
$custom-light: #a28ccd;
$custom-dark: #000000;
JSON
{
  "hex": "#795eb7",
  "rgb": {
    "r": 121,
    "g": 94,
    "b": 183
  },
  "hsl": {
    "h": 258.202,
    "s": 38.197,
    "l": 54.314
  },
  "oklch": {
    "l": 0.54968,
    "c": 0.13572,
    "h": 295.6
  },
  "luminance": 0.15489
}

Semantic roles & 50–950 ramp

primary
#795EB7
secondary
#C0CBA6
accent
#CE5AAB
background
#FAF8FC
surface
#F4F0F9
border
#CECBD2
text
#0F0C13
muted
#7F7D82

Preview Lab

Preview with #795EB7

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

Preview Lab → · Contrast checker → · Palette generator →

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