#795CA8#795CA8

#795CA8 is a mid, moderate violet. Relative luminance 0.145; OKLCH L 53.7% C 0.119 H 300.0°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#795CA8
RGBrgb(121, 92, 168)
HSLhsl(263, 30%, 51%)
HSVhsv(263, 45%, 66%)
CMYKcmyk(28%, 45.2%, 0%, 34.1%)
CIE-LABlab(45.01, 28.25, -36.68)
CIE-LCHlch(45.01, 46.30, 307.61°)
OKLaboklab(53.74% 0.0594 -0.1027)
OKLCHoklch(53.74% 0.119 300)
XYZxyz(18.7786, 14.5463, 38.8566)
Luminance0.1455 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795CA8 #8BA85C
analogous
#5C65A8 #795CA8 #9F5CA8
triadic
#795CA8 #A8795C #5CA879
tetradic
#795CA8 #A85C65 #8BA85C #5CA89F
square
#795CA8 #A85C65 #8BA85C #5CA89F
split-complementary
#795CA8 #A89F5C #65A85C
monochromatic
#40305A #5C4582 #795CA8 #9A84BD #BBACD3

Accessibility & contrast

On white

5.37
#795CA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#795CA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795CA8
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795CA8#FFFFFF#000000##FFFFFF
##795CA81.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#466AAB
Deuteranopia (green-blind)
#4C6AA6
Tritanopia (blue-blind)
#70697A
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #795ca8;
/* rgb */ color: rgb(121, 92, 168);
/* oklch */ color: oklch(53.7% 0.119 300.0);
Tailwind
colors: {
  custom: {
    50: '#a28ac2',
    500: '#795ca8',
    950: '#000000',
  },
}
SCSS
$custom: #795ca8;
$custom-light: #a28ac2;
$custom-dark: #000000;
JSON
{
  "hex": "#795ca8",
  "rgb": {
    "r": 121,
    "g": 92,
    "b": 168
  },
  "hsl": {
    "h": 262.895,
    "s": 30.4,
    "l": 50.98
  },
  "oklch": {
    "l": 0.53736,
    "c": 0.11867,
    "h": 300
  },
  "luminance": 0.14546
}

Semantic roles & 50–950 ramp

primary
#795CA8
secondary
#B4C19F
accent
#C761A0
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#0F0C12
muted
#7F7D81

Preview Lab

Preview with #795CA8

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

Preview Lab → · Contrast checker → · Palette generator →

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