#796FA8#796FA8

#796FA8 is a mid, moderate violet. Relative luminance 0.183; OKLCH L 57.4% C 0.087 H 291.5°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#796FA8
RGBrgb(121, 111, 168)
HSLhsl(251, 25%, 55%)
HSVhsv(251, 34%, 66%)
CMYKcmyk(28%, 33.9%, 0%, 34.1%)
CIE-LABlab(49.81, 16.85, -29.14)
CIE-LCHlch(49.81, 33.66, 300.03°)
OKLaboklab(57.39% 0.0318 -0.081)
OKLCHoklch(57.39% 0.087 291.5)
XYZxyz(20.6357, 18.2606, 39.4756)
Luminance0.1826 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796FA8 #9EA86F
analogous
#6F82A8 #796FA8 #956FA8
triadic
#796FA8 #A8796F #6FA879
tetradic
#796FA8 #A86F82 #9EA86F #6FA895
square
#796FA8 #A86F82 #9EA86F #6FA895
split-complementary
#796FA8 #A8956F #82A86F
monochromatic
#423B62 #5B5288 #796FA8 #9D95BF #C0BBD6

Accessibility & contrast

On white

4.51
#796FA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#796FA8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796FA8
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796FA8#FFFFFF#000000##000000
##796FA81.004.514.654.65
#FFFFFF4.511.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6077AA
Deuteranopia (green-blind)
#6075A7
Tritanopia (blue-blind)
#6F7984
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #796fa8;
/* rgb */ color: rgb(121, 111, 168);
/* oklch */ color: oklch(57.4% 0.087 291.5);
Tailwind
colors: {
  custom: {
    50: '#a198c2',
    500: '#796fa8',
    950: '#000000',
  },
}
SCSS
$custom: #796fa8;
$custom-light: #a198c2;
$custom-dark: #000000;
JSON
{
  "hex": "#796fa8",
  "rgb": {
    "r": 121,
    "g": 111,
    "b": 168
  },
  "hsl": {
    "h": 250.526,
    "s": 24.675,
    "l": 54.706
  },
  "oklch": {
    "l": 0.57386,
    "c": 0.087,
    "h": 291.5
  },
  "luminance": 0.18261
}

Semantic roles & 50–950 ramp

primary
#796FA8
secondary
#C1C5AD
accent
#C167B1
background
#FAF9FB
surface
#F3F2F7
border
#CDCCD0
text
#0F0D12
muted
#7F7E81

Preview Lab

Preview with #796FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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