#796299#796299

#796299 is a mid, moderate violet. Relative luminance 0.151; OKLCH L 54.1% C 0.088 H 302.8°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#796299
RGBrgb(121, 98, 153)
HSLhsl(265, 22%, 49%)
HSVhsv(265, 36%, 60%)
CMYKcmyk(20.9%, 35.9%, 0%, 40%)
CIE-LABlab(45.77, 20.88, -26.60)
CIE-LCHlch(45.77, 33.82, 308.13°)
OKLaboklab(54.08% 0.0475 -0.0736)
OKLCHoklch(54.08% 0.088 302.8)
XYZxyz(18.0014, 15.1002, 32.0971)
Luminance0.1510 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796299 #829962
analogous
#626799 #796299 #956299
triadic
#796299 #997962 #629979
tetradic
#796299 #996267 #829962 #629995
square
#796299 #996267 #829962 #629995
split-complementary
#796299 #999562 #679962
monochromatic
#3E324E #5B4A74 #796299 #9986B2 #B8ACCA

Accessibility & contrast

On white

5.22
#796299 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#796299 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796299
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796299#FFFFFF#000000##FFFFFF
##7962991.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#566C9B
Deuteranopia (green-blind)
#5A6C97
Tritanopia (blue-blind)
#746B76
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #796299;
/* rgb */ color: rgb(121, 98, 153);
/* oklch */ color: oklch(54.1% 0.088 302.8);
Tailwind
colors: {
  custom: {
    50: '#a08fb7',
    500: '#796299',
    950: '#000000',
  },
}
SCSS
$custom: #796299;
$custom-light: #a08fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#796299",
  "rgb": {
    "r": 121,
    "g": 98,
    "b": 153
  },
  "hsl": {
    "h": 265.091,
    "s": 21.912,
    "l": 49.216
  },
  "oklch": {
    "l": 0.54077,
    "c": 0.0876,
    "h": 302.8
  },
  "luminance": 0.151
}

Semantic roles & 50–950 ramp

primary
#796299
secondary
#ADB89F
accent
#BE699B
background
#F9F8FB
surface
#F2F0F6
border
#CCCBD0
text
#0F0C11
muted
#7E7D80

Preview Lab

Preview with #796299

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

Preview Lab → · Contrast checker → · Palette generator →

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