#796EA5#796EA5

#796EA5 is a mid, moderate violet. Relative luminance 0.179; OKLCH L 57.0% C 0.084 H 292.7°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#796EA5
RGBrgb(121, 110, 165)
HSLhsl(252, 23%, 54%)
HSVhsv(252, 33%, 65%)
CMYKcmyk(26.7%, 33.3%, 0%, 35.3%)
CIE-LABlab(49.41, 16.67, -28.01)
CIE-LCHlch(49.41, 32.60, 300.77°)
OKLaboklab(57.04% 0.0325 -0.0777)
OKLCHoklch(57.04% 0.084 292.7)
XYZxyz(20.2510, 17.9331, 37.9845)
Luminance0.1793 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796EA5 #9AA56E
analogous
#6E7FA5 #796EA5 #956EA5
triadic
#796EA5 #A5796E #6EA579
tetradic
#796EA5 #A56E7F #9AA56E #6EA595
square
#796EA5 #A56E7F #9AA56E #6EA595
split-complementary
#796EA5 #A5956E #7FA56E
monochromatic
#423A5E #5C5284 #796EA5 #9C94BC #BFBAD4

Accessibility & contrast

On white

4.58
#796EA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#796EA5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796EA5
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796EA5#FFFFFF#000000##000000
##796EA51.004.584.594.59
#FFFFFF4.581.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6076A7
Deuteranopia (green-blind)
#6174A4
Tritanopia (blue-blind)
#707782
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #796ea5;
/* rgb */ color: rgb(121, 110, 165);
/* oklch */ color: oklch(57.0% 0.084 292.7);
Tailwind
colors: {
  custom: {
    50: '#a197c0',
    500: '#796ea5',
    950: '#000000',
  },
}
SCSS
$custom: #796ea5;
$custom-light: #a197c0;
$custom-dark: #000000;
JSON
{
  "hex": "#796ea5",
  "rgb": {
    "r": 121,
    "g": 110,
    "b": 165
  },
  "hsl": {
    "h": 252,
    "s": 23.404,
    "l": 53.922
  },
  "oklch": {
    "l": 0.57038,
    "c": 0.08423,
    "h": 292.7
  },
  "luminance": 0.17933
}

Semantic roles & 50–950 ramp

primary
#796EA5
secondary
#BEC3AC
accent
#C068AE
background
#FAF9FB
surface
#F3F2F7
border
#CDCCD0
text
#0F0D12
muted
#7F7E81

Preview Lab

Preview with #796EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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