#795FB9#795FB9

#795FB9 is a mid, vivid violet. Relative luminance 0.158; OKLCH L 55.3% C 0.137 H 294.8°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#795FB9
RGBrgb(121, 95, 185)
HSLhsl(257, 39%, 55%)
HSVhsv(257, 49%, 73%)
CMYKcmyk(34.6%, 48.6%, 0%, 27.5%)
CIE-LABlab(46.65, 30.95, -44.03)
CIE-LCHlch(46.65, 53.82, 305.10°)
OKLaboklab(55.27% 0.0575 -0.1242)
OKLCHoklch(55.27% 0.137 294.8)
XYZxyz(20.7321, 15.7518, 47.8376)
Luminance0.1575 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795FB9 #9FB95F
analogous
#5F72B9 #795FB9 #A65FB9
triadic
#795FB9 #B9795F #5FB979
tetradic
#795FB9 #B95F72 #9FB95F #5FB9A6
square
#795FB9 #B95F72 #9FB95F #5FB9A6
split-complementary
#795FB9 #B9A65F #72B95F
monochromatic
#42306E #5B4398 #795FB9 #9D8ACC #C0B4DE

Accessibility & contrast

On white

5.06
#795FB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#795FB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795FB9
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795FB9#FFFFFF#000000##FFFFFF
##795FB91.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F6FBC
Deuteranopia (green-blind)
#446DB7
Tritanopia (blue-blind)
#6A7083
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #795fb9;
/* rgb */ color: rgb(121, 95, 185);
/* oklch */ color: oklch(55.3% 0.137 294.8);
Tailwind
colors: {
  custom: {
    50: '#a38dce',
    500: '#795fb9',
    950: '#000000',
  },
}
SCSS
$custom: #795fb9;
$custom-light: #a38dce;
$custom-dark: #000000;
JSON
{
  "hex": "#795fb9",
  "rgb": {
    "r": 121,
    "g": 95,
    "b": 185
  },
  "hsl": {
    "h": 257.333,
    "s": 39.13,
    "l": 54.902
  },
  "oklch": {
    "l": 0.55266,
    "c": 0.13685,
    "h": 294.8
  },
  "luminance": 0.15752
}

Semantic roles & 50–950 ramp

primary
#795FB9
secondary
#C2CDA7
accent
#CF59AD
background
#FAF8FC
surface
#F4F0F9
border
#CECBD2
text
#0F0C14
muted
#7F7D82

Preview Lab

Preview with #795FB9

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

Preview Lab → · Contrast checker → · Palette generator →

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