#796AAB#796AAB

#796AAB is a mid, moderate violet. Relative luminance 0.173; OKLCH L 56.5% C 0.100 H 293.6°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#796AAB
RGBrgb(121, 106, 171)
HSLhsl(254, 28%, 54%)
HSVhsv(254, 38%, 67%)
CMYKcmyk(29.2%, 38%, 0%, 32.9%)
CIE-LABlab(48.65, 20.63, -32.70)
CIE-LCHlch(48.65, 38.67, 302.25°)
OKLaboklab(56.55% 0.0398 -0.0912)
OKLCHoklch(56.55% 0.1 293.6)
XYZxyz(20.3881, 17.3130, 40.7878)
Luminance0.1731 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796AAB #9CAB6A
analogous
#6A7CAB #796AAB #9A6AAB
triadic
#796AAB #AB796A #6AAB79
tetradic
#796AAB #AB6A7C #9CAB6A #6AAB9A
square
#796AAB #AB6A7C #9CAB6A #6AAB9A
split-complementary
#796AAB #AB9A6A #7CAB6A
monochromatic
#423863 #5C4E8A #796AAB #9C91C1 #BFB8D7

Accessibility & contrast

On white

4.71
#796AAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#796AAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796AAB
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796AAB#FFFFFF#000000##FFFFFF
##796AAB1.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5874AE
Deuteranopia (green-blind)
#5A72A9
Tritanopia (blue-blind)
#6E7582
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #796aab;
/* rgb */ color: rgb(121, 106, 171);
/* oklch */ color: oklch(56.5% 0.100 293.6);
Tailwind
colors: {
  custom: {
    50: '#a194c4',
    500: '#796aab',
    950: '#000000',
  },
}
SCSS
$custom: #796aab;
$custom-light: #a194c4;
$custom-dark: #000000;
JSON
{
  "hex": "#796aab",
  "rgb": {
    "r": 121,
    "g": 106,
    "b": 171
  },
  "hsl": {
    "h": 253.846,
    "s": 27.897,
    "l": 54.314
  },
  "oklch": {
    "l": 0.56546,
    "c": 0.09953,
    "h": 293.6
  },
  "luminance": 0.17313
}

Semantic roles & 50–950 ramp

primary
#796AAB
secondary
#C0C6AB
accent
#C464AE
background
#FAF9FC
surface
#F3F1F8
border
#CDCBD1
text
#0F0D12
muted
#7F7E81

Preview Lab

Preview with #796AAB

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

Preview Lab → · Contrast checker → · Palette generator →

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