#795B8D#795B8D

#795B8D is a mid, moderate violet. Relative luminance 0.135; OKLCH L 52.1% C 0.084 H 311.1°. Best body text is #FFFFFF at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#795B8D
RGBrgb(121, 91, 141)
HSLhsl(276, 22%, 45%)
HSVhsv(276, 35%, 55%)
CMYKcmyk(14.2%, 35.5%, 0%, 44.7%)
CIE-LABlab(43.46, 22.24, -23.02)
CIE-LCHlch(43.46, 32.00, 314.01°)
OKLaboklab(52.15% 0.0553 -0.0633)
OKLCHoklch(52.15% 0.084 311.1)
XYZxyz(16.4331, 13.4704, 26.9285)
Luminance0.1347 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795B8D #6F8D5B
analogous
#605B8D #795B8D #8D5B88
triadic
#795B8D #8D795B #5B8D79
tetradic
#795B8D #8D605B #6F8D5B #5B888D
square
#795B8D #8D605B #6F8D5B #5B888D
split-complementary
#795B8D #888D5B #5B8D60
monochromatic
#392B43 #594368 #795B8D #977BAA #B5A0C2

Accessibility & contrast

On white

5.68
#795B8D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#795B8D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795B8D
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795B8D#FFFFFF#000000##FFFFFF
##795B8D1.005.683.695.68
#FFFFFF5.681.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#52658F
Deuteranopia (green-blind)
#59678C
Tritanopia (blue-blind)
#77626D
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #795b8d;
/* rgb */ color: rgb(121, 91, 141);
/* oklch */ color: oklch(52.1% 0.084 311.1);
Tailwind
colors: {
  custom: {
    50: '#a08aae',
    500: '#795b8d',
    950: '#000000',
  },
}
SCSS
$custom: #795b8d;
$custom-light: #a08aae;
$custom-dark: #000000;
JSON
{
  "hex": "#795b8d",
  "rgb": {
    "r": 121,
    "g": 91,
    "b": 141
  },
  "hsl": {
    "h": 276,
    "s": 21.552,
    "l": 45.49
  },
  "oklch": {
    "l": 0.52146,
    "c": 0.08406,
    "h": 311.1
  },
  "luminance": 0.1347
}

Semantic roles & 50–950 ramp

primary
#795B8D
secondary
#9FB094
accent
#BE6A8B
background
#F9F8FA
surface
#F2F0F4
border
#CCCBCE
text
#0F0B10
muted
#7E7C7F

Preview Lab

Preview with #795B8D

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

Preview Lab → · Contrast checker → · Palette generator →

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