#796FA5#796FA5

#796FA5 is a mid, moderate violet. Relative luminance 0.181; OKLCH L 57.2% C 0.083 H 292.1°. Best body text is #000000 at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#796FA5
RGBrgb(121, 111, 165)
HSLhsl(251, 23%, 54%)
HSVhsv(251, 33%, 65%)
CMYKcmyk(26.7%, 32.7%, 0%, 35.3%)
CIE-LABlab(49.68, 16.07, -27.60)
CIE-LCHlch(49.68, 31.94, 300.22°)
OKLaboklab(57.24% 0.031 -0.0765)
OKLCHoklch(57.24% 0.083 292.1)
XYZxyz(20.3595, 18.1501, 38.0207)
Luminance0.1815 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796FA5 #9BA56F
analogous
#6F80A5 #796FA5 #946FA5
triadic
#796FA5 #A5796F #6FA579
tetradic
#796FA5 #A56F80 #9BA56F #6FA594
square
#796FA5 #A56F80 #9BA56F #6FA594
split-complementary
#796FA5 #A5946F #80A56F
monochromatic
#423B5F #5C5384 #796FA5 #9C95BD #BFBAD4

Accessibility & contrast

On white

4.54
#796FA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.63
#796FA5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796FA5
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796FA5#FFFFFF#000000##000000
##796FA51.004.544.634.63
#FFFFFF4.541.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6177A7
Deuteranopia (green-blind)
#6275A4
Tritanopia (blue-blind)
#707883
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #796fa5;
/* rgb */ color: rgb(121, 111, 165);
/* oklch */ color: oklch(57.2% 0.083 292.1);
Tailwind
colors: {
  custom: {
    50: '#a198c0',
    500: '#796fa5',
    950: '#000000',
  },
}
SCSS
$custom: #796fa5;
$custom-light: #a198c0;
$custom-dark: #000000;
JSON
{
  "hex": "#796fa5",
  "rgb": {
    "r": 121,
    "g": 111,
    "b": 165
  },
  "hsl": {
    "h": 251.111,
    "s": 23.077,
    "l": 54.118
  },
  "oklch": {
    "l": 0.5724,
    "c": 0.08259,
    "h": 292.1
  },
  "luminance": 0.1815
}

Semantic roles & 50–950 ramp

primary
#796FA5
secondary
#BFC3AC
accent
#C068AF
background
#F9F9FB
surface
#F2F2F7
border
#CCCCD0
text
#0F0D12
muted
#7E7E81

Preview Lab

Preview with #796FA5

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

Preview Lab → · Contrast checker → · Palette generator →

#796FA5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva