#795CB9#795CB9

#795CB9 is a mid, vivid violet. Relative luminance 0.152; OKLCH L 54.7% C 0.142 H 295.8°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#795CB9
RGBrgb(121, 92, 185)
HSLhsl(259, 40%, 54%)
HSVhsv(259, 50%, 73%)
CMYKcmyk(34.6%, 50.3%, 0%, 27.5%)
CIE-LABlab(45.94, 32.73, -45.16)
CIE-LCHlch(45.94, 55.77, 305.93°)
OKLaboklab(54.74% 0.0615 -0.1275)
OKLCHoklch(54.74% 0.142 295.8)
XYZxyz(20.4671, 15.2217, 47.7493)
Luminance0.1522 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795CB9 #9CB95C
analogous
#5C6EB9 #795CB9 #A85CB9
triadic
#795CB9 #B9795C #5CB979
tetradic
#795CB9 #B95C6E #9CB95C #5CB9A8
square
#795CB9 #B95C6E #9CB95C #5CB9A8
split-complementary
#795CB9 #B9A85C #6EB95C
monochromatic
#422E6C #5C4197 #795CB9 #9C87CB #BFB2DE

Accessibility & contrast

On white

5.19
#795CB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#795CB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795CB9
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795CB9#FFFFFF#000000##FFFFFF
##795CB91.005.194.045.19
#FFFFFF5.191.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A6DBC
Deuteranopia (green-blind)
#406CB7
Tritanopia (blue-blind)
#6A6E82
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #795cb9;
/* rgb */ color: rgb(121, 92, 185);
/* oklch */ color: oklch(54.7% 0.142 295.8);
Tailwind
colors: {
  custom: {
    50: '#a38bce',
    500: '#795cb9',
    950: '#000000',
  },
}
SCSS
$custom: #795cb9;
$custom-light: #a38bce;
$custom-dark: #000000;
JSON
{
  "hex": "#795cb9",
  "rgb": {
    "r": 121,
    "g": 92,
    "b": 185
  },
  "hsl": {
    "h": 258.71,
    "s": 39.914,
    "l": 54.314
  },
  "oklch": {
    "l": 0.54735,
    "c": 0.14156,
    "h": 295.8
  },
  "luminance": 0.15222
}

Semantic roles & 50–950 ramp

primary
#795CB9
secondary
#C0CCA5
accent
#D058AA
background
#FAF8FC
surface
#F4F0F9
border
#CECBD2
text
#0F0C14
muted
#7F7D82

Preview Lab

Preview with #795CB9

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

Preview Lab → · Contrast checker → · Palette generator →

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