#796AAF#796AAF

#796AAF is a mid, moderate violet. Relative luminance 0.175; OKLCH L 56.8% C 0.105 H 292.7°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#796AAF
RGBrgb(121, 106, 175)
HSLhsl(253, 30%, 55%)
HSVhsv(253, 39%, 69%)
CMYKcmyk(30.9%, 39.4%, 0%, 31.4%)
CIE-LABlab(48.84, 21.69, -34.74)
CIE-LCHlch(48.84, 40.95, 301.98°)
OKLaboklab(56.76% 0.0407 -0.0971)
OKLCHoklch(56.76% 0.105 292.7)
XYZxyz(20.7751, 17.4678, 42.8262)
Luminance0.1747 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796AAF #A0AF6A
analogous
#6A7EAF #796AAF #9B6AAF
triadic
#796AAF #AF796A #6AAF79
tetradic
#796AAF #AF6A7E #A0AF6A #6AAF9B
square
#796AAF #AF6A7E #A0AF6A #6AAF9B
split-complementary
#796AAF #AF9B6A #7EAF6A
monochromatic
#423767 #5B4D8F #796AAF #9D92C4 #C1BADA

Accessibility & contrast

On white

4.67
#796AAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.49
#796AAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796AAF
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796AAF#FFFFFF#000000##FFFFFF
##796AAF1.004.674.494.67
#FFFFFF4.671.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5675B2
Deuteranopia (green-blind)
#5873AD
Tritanopia (blue-blind)
#6D7684
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #796aaf;
/* rgb */ color: rgb(121, 106, 175);
/* oklch */ color: oklch(56.8% 0.105 292.7);
Tailwind
colors: {
  custom: {
    50: '#a194c7',
    500: '#796aaf',
    950: '#000000',
  },
}
SCSS
$custom: #796aaf;
$custom-light: #a194c7;
$custom-dark: #000000;
JSON
{
  "hex": "#796aaf",
  "rgb": {
    "r": 121,
    "g": 106,
    "b": 175
  },
  "hsl": {
    "h": 253.043,
    "s": 30.131,
    "l": 55.098
  },
  "oklch": {
    "l": 0.56755,
    "c": 0.10528,
    "h": 292.7
  },
  "luminance": 0.17468
}

Semantic roles & 50–950 ramp

primary
#796AAF
secondary
#C3C9AC
accent
#C661B0
background
#FAF9FC
surface
#F4F1F8
border
#CECBD1
text
#0F0D13
muted
#7F7E82

Preview Lab

Preview with #796AAF

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

Preview Lab → · Contrast checker → · Palette generator →

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