#795EA1#795EA1

#795EA1 is a mid, moderate violet. Relative luminance 0.146; OKLCH L 53.7% C 0.106 H 301.5°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#795EA1
RGBrgb(121, 94, 161)
HSLhsl(264, 26%, 50%)
HSVhsv(264, 42%, 63%)
CMYKcmyk(24.8%, 41.6%, 0%, 36.9%)
CIE-LABlab(45.14, 25.28, -32.33)
CIE-LCHlch(45.14, 41.04, 308.02°)
OKLaboklab(53.72% 0.0553 -0.0901)
OKLCHoklch(53.72% 0.106 301.5)
XYZxyz(18.3195, 14.6435, 35.5727)
Luminance0.1464 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795EA1 #86A15E
analogous
#5E64A1 #795EA1 #9B5EA1
triadic
#795EA1 #A1795E #5EA179
tetradic
#795EA1 #A15E64 #86A15E #5EA19B
square
#795EA1 #A15E64 #86A15E #5EA19B
split-complementary
#795EA1 #A19B5E #64A15E
monochromatic
#3F3154 #5C477A #795EA1 #9985B8 #B9ABCE

Accessibility & contrast

On white

5.35
#795EA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#795EA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795EA1
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795EA1#FFFFFF#000000##FFFFFF
##795EA11.005.353.935.35
#FFFFFF5.351.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D6AA4
Deuteranopia (green-blind)
#526B9F
Tritanopia (blue-blind)
#726978
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #795ea1;
/* rgb */ color: rgb(121, 94, 161);
/* oklch */ color: oklch(53.7% 0.106 301.5);
Tailwind
colors: {
  custom: {
    50: '#a18cbd',
    500: '#795ea1',
    950: '#000000',
  },
}
SCSS
$custom: #795ea1;
$custom-light: #a18cbd;
$custom-dark: #000000;
JSON
{
  "hex": "#795ea1",
  "rgb": {
    "r": 121,
    "g": 94,
    "b": 161
  },
  "hsl": {
    "h": 264.179,
    "s": 26.275,
    "l": 50
  },
  "oklch": {
    "l": 0.53723,
    "c": 0.10571,
    "h": 301.5
  },
  "luminance": 0.14644
}

Semantic roles & 50–950 ramp

primary
#795EA1
secondary
#B0BC9E
accent
#C3659D
background
#FAF8FB
surface
#F3F0F6
border
#CDCBD0
text
#0F0C12
muted
#7F7D81

Preview Lab

Preview with #795EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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