#795291#795291

#795291 is a mid, moderate violet. Relative luminance 0.121; OKLCH L 50.7% C 0.106 H 311.6°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#795291
RGBrgb(121, 82, 145)
HSLhsl(277, 28%, 45%)
HSVhsv(277, 43%, 57%)
CMYKcmyk(16.6%, 43.4%, 0%, 43.1%)
CIE-LABlab(41.44, 28.54, -28.57)
CIE-LCHlch(41.44, 40.38, 314.98°)
OKLaboklab(50.68% 0.0703 -0.0792)
OKLCHoklch(50.68% 0.106 311.6)
XYZxyz(16.0124, 12.1442, 28.2831)
Luminance0.1214 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795291 #6A9152
analogous
#5A5291 #795291 #91528A
triadic
#795291 #917952 #529179
tetradic
#795291 #915A52 #6A9152 #528A91
square
#795291 #915A52 #6A9152 #528A91
split-complementary
#795291 #8A9152 #52915A
monochromatic
#382643 #583C6A #795291 #9771AF #B498C5

Accessibility & contrast

On white

6.12
#795291 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#795291 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795291
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795291#FFFFFF#000000##FFFFFF
##7952911.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#456093
Deuteranopia (green-blind)
#4F638F
Tritanopia (blue-blind)
#775B6A
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #795291;
/* rgb */ color: rgb(121, 82, 145);
/* oklch */ color: oklch(50.7% 0.106 311.6);
Tailwind
colors: {
  custom: {
    50: '#a183b1',
    500: '#795291',
    950: '#000000',
  },
}
SCSS
$custom: #795291;
$custom-light: #a183b1;
$custom-dark: #000000;
JSON
{
  "hex": "#795291",
  "rgb": {
    "r": 121,
    "g": 82,
    "b": 145
  },
  "hsl": {
    "h": 277.143,
    "s": 27.753,
    "l": 44.51
  },
  "oklch": {
    "l": 0.5068,
    "c": 0.10588,
    "h": 311.6
  },
  "luminance": 0.12144
}

Semantic roles & 50–950 ramp

primary
#795291
secondary
#9BB28D
accent
#C46488
background
#FAF8FA
surface
#F3EFF5
border
#CDCACF
text
#0F0B10
muted
#7F7C7F

Preview Lab

Preview with #795291

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

Preview Lab → · Contrast checker → · Palette generator →

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