#795FA8#795FA8

#795FA8 is a mid, moderate violet. Relative luminance 0.151; OKLCH L 54.3% C 0.114 H 299.0°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#795FA8
RGBrgb(121, 95, 168)
HSLhsl(261, 30%, 52%)
HSVhsv(261, 43%, 66%)
CMYKcmyk(28%, 43.5%, 0%, 34.1%)
CIE-LABlab(45.74, 26.46, -35.52)
CIE-LCHlch(45.74, 44.30, 306.68°)
OKLaboklab(54.29% 0.0551 -0.0994)
OKLCHoklch(54.29% 0.114 299)
XYZxyz(19.0436, 15.0764, 38.9449)
Luminance0.1508 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795FA8 #8EA85F
analogous
#5F6AA8 #795FA8 #9E5FA8
triadic
#795FA8 #A8795F #5FA879
tetradic
#795FA8 #A85F6A #8EA85F #5FA89E
square
#795FA8 #A85F6A #8EA85F #5FA89E
split-complementary
#795FA8 #A89E5F #6AA85F
monochromatic
#40325B #5C4783 #795FA8 #9A87BE #BBAED3

Accessibility & contrast

On white

5.23
#795FA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#795FA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795FA8
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795FA8#FFFFFF#000000##FFFFFF
##795FA81.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #795fa8;
/* rgb */ color: rgb(121, 95, 168);
/* oklch */ color: oklch(54.3% 0.114 299.0);
Tailwind
colors: {
  custom: {
    50: '#a18dc2',
    500: '#795fa8',
    950: '#000000',
  },
}
SCSS
$custom: #795fa8;
$custom-light: #a18dc2;
$custom-dark: #000000;
JSON
{
  "hex": "#795fa8",
  "rgb": {
    "r": 121,
    "g": 95,
    "b": 168
  },
  "hsl": {
    "h": 261.37,
    "s": 29.555,
    "l": 51.569
  },
  "oklch": {
    "l": 0.54288,
    "c": 0.11363,
    "h": 299
  },
  "luminance": 0.15077
}

Semantic roles & 50–950 ramp

primary
#795FA8
secondary
#B6C1A1
accent
#C662A2
background
#FAF8FB
surface
#F4F0F7
border
#CECBD0
text
#0F0C12
muted
#7F7D81

Preview Lab

Preview with #795FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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