#795897#795897

#795897 is a mid, moderate violet. Relative luminance 0.133; OKLCH L 52.1% C 0.103 H 307.3°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#795897
RGBrgb(121, 88, 151)
HSLhsl(271, 26%, 47%)
HSVhsv(271, 42%, 59%)
CMYKcmyk(19.9%, 41.7%, 0%, 40.8%)
CIE-LABlab(43.18, 26.40, -29.45)
CIE-LCHlch(43.18, 39.56, 311.87°)
OKLaboklab(52.08% 0.0623 -0.0818)
OKLCHoklch(52.08% 0.103 307.3)
XYZxyz(16.9597, 13.2789, 30.9418)
Luminance0.1328 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795897 #769758
analogous
#5A5897 #795897 #975896
triadic
#795897 #977958 #589779
tetradic
#795897 #975A58 #769758 #589697
square
#795897 #975A58 #769758 #589697
split-complementary
#795897 #969758 #58975A
monochromatic
#3B2B4A #5A4170 #795897 #977AB2 #B6A1C8

Accessibility & contrast

On white

5.74
#795897 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#795897 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795897
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795897#FFFFFF#000000##FFFFFF
##7958971.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A6599
Deuteranopia (green-blind)
#526695
Tritanopia (blue-blind)
#756270
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #795897;
/* rgb */ color: rgb(121, 88, 151);
/* oklch */ color: oklch(52.1% 0.103 307.3);
Tailwind
colors: {
  custom: {
    50: '#a187b6',
    500: '#795897',
    950: '#000000',
  },
}
SCSS
$custom: #795897;
$custom-light: #a187b6;
$custom-dark: #000000;
JSON
{
  "hex": "#795897",
  "rgb": {
    "r": 121,
    "g": 88,
    "b": 151
  },
  "hsl": {
    "h": 271.429,
    "s": 26.36,
    "l": 46.863
  },
  "oklch": {
    "l": 0.52082,
    "c": 0.10279,
    "h": 307.3
  },
  "luminance": 0.13279
}

Semantic roles & 50–950 ramp

primary
#795897
secondary
#A5B695
accent
#C36592
background
#FAF8FB
surface
#F3EFF6
border
#CDCAD0
text
#0F0B11
muted
#7F7C80

Preview Lab

Preview with #795897

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

Preview Lab → · Contrast checker → · Palette generator →

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