#795CB7#795CB7

#795CB7 is a mid, vivid violet. Relative luminance 0.151; OKLCH L 54.6% C 0.139 H 296.2°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#795CB7
RGBrgb(121, 92, 183)
HSLhsl(259, 39%, 54%)
HSVhsv(259, 50%, 72%)
CMYKcmyk(33.9%, 49.7%, 0%, 28.2%)
CIE-LABlab(45.82, 32.19, -44.18)
CIE-LCHlch(45.82, 54.66, 306.08°)
OKLaboklab(54.61% 0.0613 -0.1246)
OKLCHoklch(54.61% 0.139 296.2)
XYZxyz(20.2574, 15.1378, 46.6452)
Luminance0.1514 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795CB7 #9AB75C
analogous
#5C6DB7 #795CB7 #A75CB7
triadic
#795CB7 #B7795C #5CB779
tetradic
#795CB7 #B75C6D #9AB75C #5CB7A7
square
#795CB7 #B75C6D #9AB75C #5CB7A7
split-complementary
#795CB7 #B7A75C #6DB75C
monochromatic
#422F6A #5C4294 #795CB7 #9C86CA #BFB1DD

Accessibility & contrast

On white

5.21
#795CB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#795CB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795CB7
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795CB7#FFFFFF#000000##FFFFFF
##795CB71.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C6DBA
Deuteranopia (green-blind)
#426BB5
Tritanopia (blue-blind)
#6B6E81
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #795cb7;
/* rgb */ color: rgb(121, 92, 183);
/* oklch */ color: oklch(54.6% 0.139 296.2);
Tailwind
colors: {
  custom: {
    50: '#a38bcd',
    500: '#795cb7',
    950: '#000000',
  },
}
SCSS
$custom: #795cb7;
$custom-light: #a38bcd;
$custom-dark: #000000;
JSON
{
  "hex": "#795cb7",
  "rgb": {
    "r": 121,
    "g": 92,
    "b": 183
  },
  "hsl": {
    "h": 259.121,
    "s": 38.723,
    "l": 53.922
  },
  "oklch": {
    "l": 0.54613,
    "c": 0.13889,
    "h": 296.2
  },
  "luminance": 0.15138
}

Semantic roles & 50–950 ramp

primary
#795CB7
secondary
#BECBA4
accent
#CF59A9
background
#FAF8FC
surface
#F4F0F9
border
#CECBD2
text
#0F0C13
muted
#7F7D82

Preview Lab

Preview with #795CB7

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

Preview Lab → · Contrast checker → · Palette generator →

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