#796293#796293

#796293 is a mid, moderate violet. Relative luminance 0.149; OKLCH L 53.8% C 0.079 H 305.4°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#796293
RGBrgb(121, 98, 147)
HSLhsl(268, 20%, 48%)
HSVhsv(268, 33%, 58%)
CMYKcmyk(17.7%, 33.3%, 0%, 42.4%)
CIE-LABlab(45.51, 19.43, -23.45)
CIE-LCHlch(45.51, 30.45, 309.65°)
OKLaboklab(53.79% 0.0459 -0.0646)
OKLCHoklch(53.79% 0.079 305.4)
XYZxyz(17.5183, 14.9070, 29.5525)
Luminance0.1491 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796293 #7C9362
analogous
#626393 #796293 #916293
triadic
#796293 #937962 #629379
tetradic
#796293 #936263 #7C9362 #629391
square
#796293 #936263 #7C9362 #629391
split-complementary
#796293 #939162 #639362
monochromatic
#3D314A #5B4A6E #796293 #9885AD #B7A9C6

Accessibility & contrast

On white

5.27
#796293 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#796293 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796293
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796293#FFFFFF#000000##FFFFFF
##7962931.005.273.985.27
#FFFFFF5.271.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#586B95
Deuteranopia (green-blind)
#5D6C92
Tritanopia (blue-blind)
#756974
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #796293;
/* rgb */ color: rgb(121, 98, 147);
/* oklch */ color: oklch(53.8% 0.079 305.4);
Tailwind
colors: {
  custom: {
    50: '#a08fb3',
    500: '#796293',
    950: '#000000',
  },
}
SCSS
$custom: #796293;
$custom-light: #a08fb3;
$custom-dark: #000000;
JSON
{
  "hex": "#796293",
  "rgb": {
    "r": 121,
    "g": 98,
    "b": 147
  },
  "hsl": {
    "h": 268.163,
    "s": 20,
    "l": 48.039
  },
  "oklch": {
    "l": 0.53788,
    "c": 0.07924,
    "h": 305.4
  },
  "luminance": 0.14907
}

Semantic roles & 50–950 ramp

primary
#796293
secondary
#A9B59C
accent
#BD6B96
background
#F9F8FB
surface
#F2F0F6
border
#CCCBD0
text
#0F0C11
muted
#7E7D80

Preview Lab

Preview with #796293

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

Preview Lab → · Contrast checker → · Palette generator →

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