#795FB7#795FB7

#795FB7 is a mid, vivid violet. Relative luminance 0.157; OKLCH L 55.1% C 0.134 H 295.3°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#795FB7
RGBrgb(121, 95, 183)
HSLhsl(258, 38%, 55%)
HSVhsv(258, 48%, 72%)
CMYKcmyk(33.9%, 48.1%, 0%, 28.2%)
CIE-LABlab(46.54, 30.41, -43.04)
CIE-LCHlch(46.54, 52.70, 305.24°)
OKLaboklab(55.15% 0.0573 -0.1213)
OKLCHoklch(55.15% 0.134 295.3)
XYZxyz(20.5225, 15.6679, 46.7335)
Luminance0.1567 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795FB7 #9DB75F
analogous
#5F71B7 #795FB7 #A55FB7
triadic
#795FB7 #B7795F #5FB779
tetradic
#795FB7 #B75F71 #9DB75F #5FB7A5
square
#795FB7 #B75F71 #9DB75F #5FB7A5
split-complementary
#795FB7 #B7A55F #71B75F
monochromatic
#42306B #5C4396 #795FB7 #9C89CA #C0B3DD

Accessibility & contrast

On white

5.08
#795FB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#795FB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795FB7
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795FB7#FFFFFF#000000##FFFFFF
##795FB71.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#416FBA
Deuteranopia (green-blind)
#466DB5
Tritanopia (blue-blind)
#6B7082
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #795fb7;
/* rgb */ color: rgb(121, 95, 183);
/* oklch */ color: oklch(55.1% 0.134 295.3);
Tailwind
colors: {
  custom: {
    50: '#a28dcd',
    500: '#795fb7',
    950: '#000000',
  },
}
SCSS
$custom: #795fb7;
$custom-light: #a28dcd;
$custom-dark: #000000;
JSON
{
  "hex": "#795fb7",
  "rgb": {
    "r": 121,
    "g": 95,
    "b": 183
  },
  "hsl": {
    "h": 257.727,
    "s": 37.931,
    "l": 54.51
  },
  "oklch": {
    "l": 0.55147,
    "c": 0.13414,
    "h": 295.3
  },
  "luminance": 0.15668
}

Semantic roles & 50–950 ramp

primary
#795FB7
secondary
#C1CCA6
accent
#CE5AAC
background
#FAF8FC
surface
#F4F0F9
border
#CECBD2
text
#0F0C13
muted
#7F7D82

Preview Lab

Preview with #795FB7

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

Preview Lab → · Contrast checker → · Palette generator →

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