#795997#795997

#795997 is a mid, moderate violet. Relative luminance 0.134; OKLCH L 52.3% C 0.101 H 307.0°. Best body text is #FFFFFF at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#795997
RGBrgb(121, 89, 151)
HSLhsl(271, 26%, 47%)
HSVhsv(271, 41%, 59%)
CMYKcmyk(19.9%, 41.1%, 0%, 40.8%)
CIE-LABlab(43.43, 25.80, -29.07)
CIE-LCHlch(43.43, 38.87, 311.59°)
OKLaboklab(52.27% 0.0608 -0.0807)
OKLCHoklch(52.27% 0.101 307)
XYZxyz(17.0424, 13.4442, 30.9693)
Luminance0.1344 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795997 #779759
analogous
#5A5997 #795997 #975996
triadic
#795997 #977959 #599779
tetradic
#795997 #975A59 #779759 #599697
square
#795997 #975A59 #779759 #599697
split-complementary
#795997 #969759 #59975A
monochromatic
#3B2C4A #5A4270 #795997 #977CB2 #B6A2C8

Accessibility & contrast

On white

5.69
#795997 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#795997 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795997
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795997#FFFFFF#000000##FFFFFF
##7959971.005.693.695.69
#FFFFFF5.691.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B6599
Deuteranopia (green-blind)
#536795
Tritanopia (blue-blind)
#756371
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #795997;
/* rgb */ color: rgb(121, 89, 151);
/* oklch */ color: oklch(52.3% 0.101 307.0);
Tailwind
colors: {
  custom: {
    50: '#a188b6',
    500: '#795997',
    950: '#000000',
  },
}
SCSS
$custom: #795997;
$custom-light: #a188b6;
$custom-dark: #000000;
JSON
{
  "hex": "#795997",
  "rgb": {
    "r": 121,
    "g": 89,
    "b": 151
  },
  "hsl": {
    "h": 270.968,
    "s": 25.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.52267,
    "c": 0.10099,
    "h": 307
  },
  "luminance": 0.13444
}

Semantic roles & 50–950 ramp

primary
#795997
secondary
#A5B696
accent
#C26692
background
#FAF8FB
surface
#F3F0F6
border
#CDCBD0
text
#0F0B11
muted
#7F7C80

Preview Lab

Preview with #795997

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

Preview Lab → · Contrast checker → · Palette generator →

#795997 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva