#795C98#795C98

#795C98 is a mid, moderate violet. Relative luminance 0.140; OKLCH L 52.9% C 0.097 H 305.6°. Best body text is #FFFFFF at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#795C98
RGBrgb(121, 92, 152)
HSLhsl(269, 25%, 48%)
HSVhsv(269, 39%, 60%)
CMYKcmyk(20.4%, 39.5%, 0%, 40.4%)
CIE-LABlab(44.21, 24.25, -28.44)
CIE-LCHlch(44.21, 37.37, 310.46°)
OKLaboklab(52.88% 0.0564 -0.0789)
OKLCHoklch(52.88% 0.097 305.6)
XYZxyz(17.3787, 13.9863, 31.4838)
Luminance0.1399 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795C98 #7B985C
analogous
#5C5D98 #795C98 #975C98
triadic
#795C98 #98795C #5C9879
tetradic
#795C98 #985C5D #7B985C #5C9897
square
#795C98 #985C5D #7B985C #5C9897
split-complementary
#795C98 #98975C #5D985C
monochromatic
#3C2E4C #5B4572 #795C98 #987FB2 #B7A6C9

Accessibility & contrast

On white

5.53
#795C98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#795C98 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795C98
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795C98#FFFFFF#000000##FFFFFF
##795C981.005.533.805.53
#FFFFFF5.531.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F689A
Deuteranopia (green-blind)
#556996
Tritanopia (blue-blind)
#746573
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #795c98;
/* rgb */ color: rgb(121, 92, 152);
/* oklch */ color: oklch(52.9% 0.097 305.6);
Tailwind
colors: {
  custom: {
    50: '#a18ab6',
    500: '#795c98',
    950: '#000000',
  },
}
SCSS
$custom: #795c98;
$custom-light: #a18ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#795c98",
  "rgb": {
    "r": 121,
    "g": 92,
    "b": 152
  },
  "hsl": {
    "h": 269,
    "s": 24.59,
    "l": 47.843
  },
  "oklch": {
    "l": 0.52879,
    "c": 0.09696,
    "h": 305.6
  },
  "luminance": 0.13986
}

Semantic roles & 50–950 ramp

primary
#795C98
secondary
#A8B799
accent
#C16795
background
#FAF8FB
surface
#F3F0F6
border
#CDCBD0
text
#0F0C11
muted
#7F7D80

Preview Lab

Preview with #795C98

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

Preview Lab → · Contrast checker → · Palette generator →

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