#796EA7#796EA7

#796EA7 is a mid, moderate violet. Relative luminance 0.180; OKLCH L 57.1% C 0.087 H 292.3°. Best body text is #000000 at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#796EA7
RGBrgb(121, 110, 167)
HSLhsl(252, 24%, 54%)
HSVhsv(252, 34%, 65%)
CMYKcmyk(27.5%, 34.1%, 0%, 34.5%)
CIE-LABlab(49.50, 17.19, -29.04)
CIE-LCHlch(49.50, 33.74, 300.62°)
OKLaboklab(57.14% 0.033 -0.0807)
OKLCHoklch(57.14% 0.087 292.3)
XYZxyz(20.4344, 18.0065, 38.9507)
Luminance0.1801 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796EA7 #9CA76E
analogous
#6E80A7 #796EA7 #966EA7
triadic
#796EA7 #A7796E #6EA779
tetradic
#796EA7 #A76E80 #9CA76E #6EA796
square
#796EA7 #A76E80 #9CA76E #6EA796
split-complementary
#796EA7 #A7966E #80A76E
monochromatic
#423A60 #5C5286 #796EA7 #9C94BE #BFBAD5

Accessibility & contrast

On white

4.56
#796EA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.60
#796EA7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796EA7
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796EA7#FFFFFF#000000##000000
##796EA71.004.564.604.60
#FFFFFF4.561.0021.0021.00
#0000004.6021.001.001.00
##0000004.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F77A9
Deuteranopia (green-blind)
#6075A6
Tritanopia (blue-blind)
#6F7883
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #796ea7;
/* rgb */ color: rgb(121, 110, 167);
/* oklch */ color: oklch(57.1% 0.087 292.3);
Tailwind
colors: {
  custom: {
    50: '#a197c1',
    500: '#796ea7',
    950: '#000000',
  },
}
SCSS
$custom: #796ea7;
$custom-light: #a197c1;
$custom-dark: #000000;
JSON
{
  "hex": "#796ea7",
  "rgb": {
    "r": 121,
    "g": 110,
    "b": 167
  },
  "hsl": {
    "h": 251.579,
    "s": 24.464,
    "l": 54.314
  },
  "oklch": {
    "l": 0.57136,
    "c": 0.08716,
    "h": 292.3
  },
  "luminance": 0.18007
}

Semantic roles & 50–950 ramp

primary
#796EA7
secondary
#C0C4AC
accent
#C167B0
background
#FAF9FB
surface
#F3F2F7
border
#CDCCD0
text
#0F0D12
muted
#7F7E81

Preview Lab

Preview with #796EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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