#795CBB#795CBB

#795CBB is a mid, vivid violet. Relative luminance 0.153; OKLCH L 54.9% C 0.144 H 295.3°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#795CBB
RGBrgb(121, 92, 187)
HSLhsl(258, 41%, 55%)
HSVhsv(258, 51%, 73%)
CMYKcmyk(35.3%, 50.8%, 0%, 26.7%)
CIE-LABlab(46.05, 33.26, -46.14)
CIE-LCHlch(46.05, 56.88, 305.79°)
OKLaboklab(54.86% 0.0617 -0.1304)
OKLCHoklch(54.86% 0.144 295.3)
XYZxyz(20.6797, 15.3067, 48.8690)
Luminance0.1531 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795CBB #9EBB5C
analogous
#5C6EBB #795CBB #A95CBB
triadic
#795CBB #BB795C #5CBB79
tetradic
#795CBB #BB5C6E #9EBB5C #5CBBA9
square
#795CBB #BB5C6E #9EBB5C #5CBBA9
split-complementary
#795CBB #BBA95C #6EBB5C
monochromatic
#422E6F #5B409A #795CBB #9D87CD #C0B2DF

Accessibility & contrast

On white

5.17
#795CBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#795CBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795CBB
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795CBB#FFFFFF#000000##FFFFFF
##795CBB1.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#386EBE
Deuteranopia (green-blind)
#3F6CB9
Tritanopia (blue-blind)
#6A6F83
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #795cbb;
/* rgb */ color: rgb(121, 92, 187);
/* oklch */ color: oklch(54.9% 0.144 295.3);
Tailwind
colors: {
  custom: {
    50: '#a38bd0',
    500: '#795cbb',
    950: '#000000',
  },
}
SCSS
$custom: #795cbb;
$custom-light: #a38bd0;
$custom-dark: #000000;
JSON
{
  "hex": "#795cbb",
  "rgb": {
    "r": 121,
    "g": 92,
    "b": 187
  },
  "hsl": {
    "h": 258.316,
    "s": 41.126,
    "l": 54.706
  },
  "oklch": {
    "l": 0.54858,
    "c": 0.14422,
    "h": 295.3
  },
  "luminance": 0.15307
}

Semantic roles & 50–950 ramp

primary
#795CBB
secondary
#C1CDA5
accent
#D157AC
background
#FAF8FC
surface
#F4F0F9
border
#CECBD2
text
#0F0C14
muted
#7F7D82

Preview Lab

Preview with #795CBB

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

Preview Lab → · Contrast checker → · Palette generator →

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