#795D98#795D98

#795D98 is a mid, moderate violet. Relative luminance 0.142; OKLCH L 53.1% C 0.095 H 305.2°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#795D98
RGBrgb(121, 93, 152)
HSLhsl(268, 24%, 48%)
HSVhsv(268, 39%, 60%)
CMYKcmyk(20.4%, 38.8%, 0%, 40.4%)
CIE-LABlab(44.46, 23.65, -28.05)
CIE-LCHlch(44.46, 36.69, 310.14°)
OKLaboklab(53.07% 0.0549 -0.0777)
OKLCHoklch(53.07% 0.095 305.2)
XYZxyz(17.4659, 14.1607, 31.5128)
Luminance0.1416 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795D98 #7C985D
analogous
#5D5E98 #795D98 #975D98
triadic
#795D98 #98795D #5D9879
tetradic
#795D98 #985D5E #7C985D #5D9897
square
#795D98 #985D5E #7C985D #5D9897
split-complementary
#795D98 #98975D #5E985D
monochromatic
#3D2F4C #5B4672 #795D98 #9881B2 #B7A7C9

Accessibility & contrast

On white

5.48
#795D98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#795D98 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795D98
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795D98#FFFFFF#000000##FFFFFF
##795D981.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#50689A
Deuteranopia (green-blind)
#566996
Tritanopia (blue-blind)
#746673
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #795d98;
/* rgb */ color: rgb(121, 93, 152);
/* oklch */ color: oklch(53.1% 0.095 305.2);
Tailwind
colors: {
  custom: {
    50: '#a18bb6',
    500: '#795d98',
    950: '#000000',
  },
}
SCSS
$custom: #795d98;
$custom-light: #a18bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#795d98",
  "rgb": {
    "r": 121,
    "g": 93,
    "b": 152
  },
  "hsl": {
    "h": 268.475,
    "s": 24.082,
    "l": 48.039
  },
  "oklch": {
    "l": 0.53067,
    "c": 0.09516,
    "h": 305.2
  },
  "luminance": 0.14161
}

Semantic roles & 50–950 ramp

primary
#795D98
secondary
#A9B79A
accent
#C16796
background
#FAF8FB
surface
#F3F0F6
border
#CDCBD0
text
#0F0C11
muted
#7F7D80

Preview Lab

Preview with #795D98

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

Preview Lab → · Contrast checker → · Palette generator →

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