#795EA6#795EA6

#795EA6 is a mid, moderate violet. Relative luminance 0.148; OKLCH L 54.0% C 0.113 H 299.9°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#795EA6
RGBrgb(121, 94, 166)
HSLhsl(263, 29%, 51%)
HSVhsv(263, 43%, 65%)
CMYKcmyk(27.1%, 43.4%, 0%, 34.9%)
CIE-LABlab(45.39, 26.55, -34.89)
CIE-LCHlch(45.39, 43.84, 307.27°)
OKLaboklab(53.99% 0.0562 -0.0975)
OKLCHoklch(53.99% 0.113 299.9)
XYZxyz(18.7692, 14.8234, 37.9414)
Luminance0.1482 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795EA6 #8BA65E
analogous
#5E67A6 #795EA6 #9D5EA6
triadic
#795EA6 #A6795E #5EA679
tetradic
#795EA6 #A65E67 #8BA65E #5EA69D
square
#795EA6 #A65E67 #8BA65E #5EA69D
split-complementary
#795EA6 #A69D5E #67A65E
monochromatic
#403159 #5C4780 #795EA6 #9A85BC #BBADD2

Accessibility & contrast

On white

5.30
#795EA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#795EA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795EA6
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795EA6#FFFFFF#000000##FFFFFF
##795EA61.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A6BA9
Deuteranopia (green-blind)
#506BA4
Tritanopia (blue-blind)
#706A7A
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #795ea6;
/* rgb */ color: rgb(121, 94, 166);
/* oklch */ color: oklch(54.0% 0.113 299.9);
Tailwind
colors: {
  custom: {
    50: '#a18cc1',
    500: '#795ea6',
    950: '#000000',
  },
}
SCSS
$custom: #795ea6;
$custom-light: #a18cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#795ea6",
  "rgb": {
    "r": 121,
    "g": 94,
    "b": 166
  },
  "hsl": {
    "h": 262.5,
    "s": 28.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.53993,
    "c": 0.11256,
    "h": 299.9
  },
  "luminance": 0.14824
}

Semantic roles & 50–950 ramp

primary
#795EA6
secondary
#B4C0A0
accent
#C563A0
background
#FAF8FB
surface
#F4F0F7
border
#CECBD0
text
#0F0C12
muted
#7F7D81

Preview Lab

Preview with #795EA6

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

Preview Lab → · Contrast checker → · Palette generator →

#795EA6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva