#795CB2#795CB2

#795CB2 is a mid, vivid violet. Relative luminance 0.149; OKLCH L 54.3% C 0.132 H 297.4°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#795CB2
RGBrgb(121, 92, 178)
HSLhsl(260, 36%, 53%)
HSVhsv(260, 48%, 70%)
CMYKcmyk(32%, 48.3%, 0%, 30.2%)
CIE-LABlab(45.54, 30.86, -41.70)
CIE-LCHlch(45.54, 51.88, 306.50°)
OKLaboklab(54.31% 0.0608 -0.1174)
OKLCHoklch(54.31% 0.132 297.4)
XYZxyz(19.7462, 14.9334, 43.9529)
Luminance0.1493 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795CB2 #95B25C
analogous
#5C6AB2 #795CB2 #A45CB2
triadic
#795CB2 #B2795C #5CB279
tetradic
#795CB2 #B25C6A #95B25C #5CB2A4
square
#795CB2 #B25C6A #95B25C #5CB2A4
split-complementary
#795CB2 #B2A45C #6AB25C
monochromatic
#412F64 #5C438E #795CB2 #9B86C6 #BDAFD9

Accessibility & contrast

On white

5.27
#795CB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#795CB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795CB2
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795CB2#FFFFFF#000000##FFFFFF
##795CB21.005.273.995.27
#FFFFFF5.271.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#406CB5
Deuteranopia (green-blind)
#466BB0
Tritanopia (blue-blind)
#6D6C7E
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #795cb2;
/* rgb */ color: rgb(121, 92, 178);
/* oklch */ color: oklch(54.3% 0.132 297.4);
Tailwind
colors: {
  custom: {
    50: '#a28bc9',
    500: '#795cb2',
    950: '#000000',
  },
}
SCSS
$custom: #795cb2;
$custom-light: #a28bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#795cb2",
  "rgb": {
    "r": 121,
    "g": 92,
    "b": 178
  },
  "hsl": {
    "h": 260.233,
    "s": 35.833,
    "l": 52.941
  },
  "oklch": {
    "l": 0.54313,
    "c": 0.13218,
    "h": 297.4
  },
  "luminance": 0.14934
}

Semantic roles & 50–950 ramp

primary
#795CB2
secondary
#BBC7A2
accent
#CC5CA6
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#0F0C13
muted
#7F7D82

Preview Lab

Preview with #795CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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