#795698#795698

#795698 is a mid, moderate violet. Relative luminance 0.130; OKLCH L 51.8% C 0.108 H 307.5°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#795698
RGBrgb(121, 86, 152)
HSLhsl(272, 28%, 47%)
HSVhsv(272, 43%, 60%)
CMYKcmyk(20.4%, 43.4%, 0%, 40.4%)
CIE-LABlab(42.74, 27.83, -30.74)
CIE-LCHlch(42.74, 41.47, 312.16°)
OKLaboklab(51.77% 0.0655 -0.0855)
OKLCHoklch(51.77% 0.108 307.5)
XYZxyz(16.8793, 12.9877, 31.3173)
Luminance0.1299 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795698 #759856
analogous
#585698 #795698 #985696
triadic
#795698 #987956 #569879
tetradic
#795698 #985856 #759856 #569698
square
#795698 #985856 #759856 #569698
split-complementary
#795698 #969856 #569858
monochromatic
#3B2A4A #5A4071 #795698 #9778B3 #B59FC9

Accessibility & contrast

On white

5.84
#795698 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#795698 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795698
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795698#FFFFFF#000000##FFFFFF
##7956981.005.843.605.84
#FFFFFF5.841.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#47649A
Deuteranopia (green-blind)
#4F6596
Tritanopia (blue-blind)
#756070
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #795698;
/* rgb */ color: rgb(121, 86, 152);
/* oklch */ color: oklch(51.8% 0.108 307.5);
Tailwind
colors: {
  custom: {
    50: '#a186b6',
    500: '#795698',
    950: '#000000',
  },
}
SCSS
$custom: #795698;
$custom-light: #a186b6;
$custom-dark: #000000;
JSON
{
  "hex": "#795698",
  "rgb": {
    "r": 121,
    "g": 86,
    "b": 152
  },
  "hsl": {
    "h": 271.818,
    "s": 27.731,
    "l": 46.667
  },
  "oklch": {
    "l": 0.5177,
    "c": 0.10768,
    "h": 307.5
  },
  "luminance": 0.12988
}

Semantic roles & 50–950 ramp

primary
#795698
secondary
#A4B693
accent
#C46491
background
#FAF8FB
surface
#F3EFF6
border
#CDCAD0
text
#0F0B11
muted
#7F7C80

Preview Lab

Preview with #795698

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

Preview Lab → · Contrast checker → · Palette generator →

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