#796287#796287

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

Color values

HEX#796287
RGBrgb(121, 98, 135)
HSLhsl(277, 16%, 46%)
HSVhsv(277, 27%, 53%)
CMYKcmyk(10.4%, 27.4%, 0%, 47.1%)
CIE-LABlab(45.01, 16.65, -17.03)
CIE-LCHlch(45.01, 23.82, 314.35°)
OKLaboklab(53.25% 0.0424 -0.0464)
OKLCHoklch(53.25% 0.063 312.4)
XYZxyz(16.6253, 14.5498, 24.8495)
Luminance0.1455 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796287 #708762
analogous
#666287 #796287 #876282
triadic
#796287 #877962 #628779
tetradic
#796287 #876662 #708762 #628287
square
#796287 #876662 #708762 #628287
split-complementary
#796287 #828762 #628766
monochromatic
#392F40 #594864 #796287 #9782A4 #B5A5BE

Accessibility & contrast

On white

5.37
#796287 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#796287 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796287
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796287#FFFFFF#000000##FFFFFF
##7962871.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C6989
Deuteranopia (green-blind)
#616B86
Tritanopia (blue-blind)
#78676F
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #796287;
/* rgb */ color: rgb(121, 98, 135);
/* oklch */ color: oklch(53.2% 0.063 312.4);
Tailwind
colors: {
  custom: {
    50: '#a08eaa',
    500: '#796287',
    950: '#000000',
  },
}
SCSS
$custom: #796287;
$custom-light: #a08eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#796287",
  "rgb": {
    "r": 121,
    "g": 98,
    "b": 135
  },
  "hsl": {
    "h": 277.297,
    "s": 15.88,
    "l": 45.686
  },
  "oklch": {
    "l": 0.53245,
    "c": 0.06284,
    "h": 312.4
  },
  "luminance": 0.1455
}

Semantic roles & 50–950 ramp

primary
#796287
secondary
#A0AD98
accent
#B96F8B
background
#F9F8FA
surface
#F2F0F4
border
#CCCBCE
text
#0E0C10
muted
#7E7D7F

Preview Lab

Preview with #796287

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

Preview Lab → · Contrast checker → · Palette generator →

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