#795CAF#795CAF

#795CAF is a mid, vivid violet. Relative luminance 0.148; OKLCH L 54.1% C 0.128 H 298.1°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#795CAF
RGBrgb(121, 92, 175)
HSLhsl(261, 34%, 52%)
HSVhsv(261, 47%, 69%)
CMYKcmyk(30.9%, 47.4%, 0%, 31.4%)
CIE-LABlab(45.38, 30.07, -40.21)
CIE-LCHlch(45.38, 50.21, 306.80°)
OKLaboklab(54.14% 0.0604 -0.113)
OKLCHoklch(54.14% 0.128 298.1)
XYZxyz(19.4483, 14.8142, 42.3839)
Luminance0.1481 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795CAF #92AF5C
analogous
#5C69AF #795CAF #A25CAF
triadic
#795CAF #AF795C #5CAF79
tetradic
#795CAF #AF5C69 #92AF5C #5CAFA2
square
#795CAF #AF5C69 #92AF5C #5CAFA2
split-complementary
#795CAF #AFA25C #69AF5C
monochromatic
#413061 #5C448A #795CAF #9B85C3 #BCAED7

Accessibility & contrast

On white

5.30
#795CAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#795CAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795CAF
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795CAF#FFFFFF#000000##FFFFFF
##795CAF1.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#426CB2
Deuteranopia (green-blind)
#486BAD
Tritanopia (blue-blind)
#6E6B7D
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #795caf;
/* rgb */ color: rgb(121, 92, 175);
/* oklch */ color: oklch(54.1% 0.128 298.1);
Tailwind
colors: {
  custom: {
    50: '#a28ac7',
    500: '#795caf',
    950: '#000000',
  },
}
SCSS
$custom: #795caf;
$custom-light: #a28ac7;
$custom-dark: #000000;
JSON
{
  "hex": "#795caf",
  "rgb": {
    "r": 121,
    "g": 92,
    "b": 175
  },
  "hsl": {
    "h": 260.964,
    "s": 34.156,
    "l": 52.353
  },
  "oklch": {
    "l": 0.54137,
    "c": 0.12814,
    "h": 298.1
  },
  "luminance": 0.14814
}

Semantic roles & 50–950 ramp

primary
#795CAF
secondary
#B9C5A1
accent
#CA5EA4
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#0F0C13
muted
#7F7D82

Preview Lab

Preview with #795CAF

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

Preview Lab → · Contrast checker → · Palette generator →

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