#796286#796286

#796286 is a mid, moderate violet. Relative luminance 0.145; OKLCH L 53.2% C 0.061 H 313.1°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#796286
RGBrgb(121, 98, 134)
HSLhsl(278, 16%, 45%)
HSVhsv(278, 27%, 53%)
CMYKcmyk(9.7%, 26.9%, 0%, 47.5%)
CIE-LABlab(44.97, 16.42, -16.49)
CIE-LCHlch(44.97, 23.27, 314.88°)
OKLaboklab(53.2% 0.042 -0.0449)
OKLCHoklch(53.2% 0.062 313.1)
XYZxyz(16.5552, 14.5218, 24.4805)
Luminance0.1452 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796286 #6F8662
analogous
#676286 #796286 #866281
triadic
#796286 #867962 #628679
tetradic
#796286 #866762 #6F8662 #628186
square
#796286 #866762 #6F8662 #628186
split-complementary
#796286 #818662 #628667
monochromatic
#392E3F #594863 #796286 #9782A3 #B5A5BD

Accessibility & contrast

On white

5.38
#796286 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#796286 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796286
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796286#FFFFFF#000000##FFFFFF
##7962861.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D6987
Deuteranopia (green-blind)
#626B85
Tritanopia (blue-blind)
#78666F
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #796286;
/* rgb */ color: rgb(121, 98, 134);
/* oklch */ color: oklch(53.2% 0.061 313.1);
Tailwind
colors: {
  custom: {
    50: '#a08ea9',
    500: '#796286',
    950: '#000000',
  },
}
SCSS
$custom: #796286;
$custom-light: #a08ea9;
$custom-dark: #000000;
JSON
{
  "hex": "#796286",
  "rgb": {
    "r": 121,
    "g": 98,
    "b": 134
  },
  "hsl": {
    "h": 278.333,
    "s": 15.517,
    "l": 45.49
  },
  "oklch": {
    "l": 0.53202,
    "c": 0.0615,
    "h": 313.1
  },
  "luminance": 0.14522
}

Semantic roles & 50–950 ramp

primary
#796286
secondary
#9FAC98
accent
#B8708A
background
#F9F8FA
surface
#F2F0F4
border
#CCCBCE
text
#0E0C0F
muted
#7E7D7F

Preview Lab

Preview with #796286

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

Preview Lab → · Contrast checker → · Palette generator →

#796286 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva