#795FA1#795FA1

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

Color values

HEX#795FA1
RGBrgb(121, 95, 161)
HSLhsl(264, 26%, 50%)
HSVhsv(264, 41%, 63%)
CMYKcmyk(24.8%, 41%, 0%, 36.9%)
CIE-LABlab(45.39, 24.68, -31.94)
CIE-LCHlch(45.39, 40.36, 307.69°)
OKLaboklab(53.91% 0.0538 -0.089)
OKLCHoklch(53.91% 0.104 301.1)
XYZxyz(18.4090, 14.8225, 35.6025)
Luminance0.1482 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795FA1 #87A15F
analogous
#5F66A1 #795FA1 #9A5FA1
triadic
#795FA1 #A1795F #5FA179
tetradic
#795FA1 #A15F66 #87A15F #5FA19A
square
#795FA1 #A15F66 #87A15F #5FA19A
split-complementary
#795FA1 #A19A5F #66A15F
monochromatic
#3F3154 #5C487B #795FA1 #9986B8 #BAACCE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##795FA1#FFFFFF#000000##FFFFFF
##795FA11.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)
#4E6BA3
Deuteranopia (green-blind)
#536B9F
Tritanopia (blue-blind)
#726A78
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #795fa1;
/* rgb */ color: rgb(121, 95, 161);
/* oklch */ color: oklch(53.9% 0.104 301.1);
Tailwind
colors: {
  custom: {
    50: '#a18cbd',
    500: '#795fa1',
    950: '#000000',
  },
}
SCSS
$custom: #795fa1;
$custom-light: #a18cbd;
$custom-dark: #000000;
JSON
{
  "hex": "#795fa1",
  "rgb": {
    "r": 121,
    "g": 95,
    "b": 161
  },
  "hsl": {
    "h": 263.636,
    "s": 25.984,
    "l": 50.196
  },
  "oklch": {
    "l": 0.53911,
    "c": 0.10397,
    "h": 301.1
  },
  "luminance": 0.14823
}

Semantic roles & 50–950 ramp

primary
#795FA1
secondary
#B1BD9F
accent
#C2659E
background
#FAF8FB
surface
#F3F0F6
border
#CDCBD0
text
#0F0C12
muted
#7F7D81

Preview Lab

Preview with #795FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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