#795FA7#795FA7

#795FA7 is a mid, moderate violet. Relative luminance 0.150; OKLCH L 54.2% C 0.112 H 299.3°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#795FA7
RGBrgb(121, 95, 167)
HSLhsl(262, 29%, 51%)
HSVhsv(262, 43%, 65%)
CMYKcmyk(27.5%, 43.1%, 0%, 34.5%)
CIE-LABlab(45.69, 26.20, -35.01)
CIE-LCHlch(45.69, 43.73, 306.81°)
OKLaboklab(54.23% 0.0549 -0.0979)
OKLCHoklch(54.23% 0.112 299.3)
XYZxyz(18.9508, 15.0393, 38.4562)
Luminance0.1504 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795FA7 #8DA75F
analogous
#5F69A7 #795FA7 #9D5FA7
triadic
#795FA7 #A7795F #5FA779
tetradic
#795FA7 #A75F69 #8DA75F #5FA79D
square
#795FA7 #A75F69 #8DA75F #5FA79D
split-complementary
#795FA7 #A79D5F #69A75F
monochromatic
#40325A #5C4782 #795FA7 #9A86BD #BBAED2

Accessibility & contrast

On white

5.24
#795FA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#795FA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795FA7
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795FA7#FFFFFF#000000##FFFFFF
##795FA71.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B6CAA
Deuteranopia (green-blind)
#506CA5
Tritanopia (blue-blind)
#706C7B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #795fa7;
/* rgb */ color: rgb(121, 95, 167);
/* oklch */ color: oklch(54.2% 0.112 299.3);
Tailwind
colors: {
  custom: {
    50: '#a18dc1',
    500: '#795fa7',
    950: '#000000',
  },
}
SCSS
$custom: #795fa7;
$custom-light: #a18dc1;
$custom-dark: #000000;
JSON
{
  "hex": "#795fa7",
  "rgb": {
    "r": 121,
    "g": 95,
    "b": 167
  },
  "hsl": {
    "h": 261.667,
    "s": 29.032,
    "l": 51.373
  },
  "oklch": {
    "l": 0.54233,
    "c": 0.11225,
    "h": 299.3
  },
  "luminance": 0.15039
}

Semantic roles & 50–950 ramp

primary
#795FA7
secondary
#B5C1A1
accent
#C562A2
background
#FAF8FB
surface
#F4F0F7
border
#CECBD0
text
#0F0C12
muted
#7F7D81

Preview Lab

Preview with #795FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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