#795FB5#795FB5

#795FB5 is a mid, vivid violet. Relative luminance 0.156; OKLCH L 55.0% C 0.131 H 295.7°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#795FB5
RGBrgb(121, 95, 181)
HSLhsl(258, 37%, 54%)
HSVhsv(258, 48%, 71%)
CMYKcmyk(33.1%, 47.5%, 0%, 29%)
CIE-LABlab(46.43, 29.88, -42.05)
CIE-LCHlch(46.43, 51.59, 305.39°)
OKLaboklab(55.03% 0.057 -0.1184)
OKLCHoklch(55.03% 0.131 295.7)
XYZxyz(20.3158, 15.5853, 45.6450)
Luminance0.1559 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795FB5 #9BB55F
analogous
#5F70B5 #795FB5 #A45FB5
triadic
#795FB5 #B5795F #5FB579
tetradic
#795FB5 #B55F70 #9BB55F #5FB5A4
square
#795FB5 #B55F70 #9BB55F #5FB5A4
split-complementary
#795FB5 #B5A45F #70B55F
monochromatic
#423169 #5C4493 #795FB5 #9C89C8 #BFB3DC

Accessibility & contrast

On white

5.10
#795FB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#795FB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795FB5
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795FB5#FFFFFF#000000##FFFFFF
##795FB51.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#426FB8
Deuteranopia (green-blind)
#476DB3
Tritanopia (blue-blind)
#6C6F81
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #795fb5;
/* rgb */ color: rgb(121, 95, 181);
/* oklch */ color: oklch(55.0% 0.131 295.7);
Tailwind
colors: {
  custom: {
    50: '#a28dcb',
    500: '#795fb5',
    950: '#000000',
  },
}
SCSS
$custom: #795fb5;
$custom-light: #a28dcb;
$custom-dark: #000000;
JSON
{
  "hex": "#795fb5",
  "rgb": {
    "r": 121,
    "g": 95,
    "b": 181
  },
  "hsl": {
    "h": 258.14,
    "s": 36.752,
    "l": 54.118
  },
  "oklch": {
    "l": 0.55028,
    "c": 0.13142,
    "h": 295.7
  },
  "luminance": 0.15586
}

Semantic roles & 50–950 ramp

primary
#795FB5
secondary
#BFCAA6
accent
#CD5BAA
background
#FAF8FC
surface
#F4F0F9
border
#CECBD2
text
#0F0C13
muted
#7F7D82

Preview Lab

Preview with #795FB5

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

Preview Lab → · Contrast checker → · Palette generator →

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