#795CC3#795CC3

#795CC3 is a mid, vivid violet. Relative luminance 0.157; OKLCH L 55.4% C 0.155 H 293.7°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#795CC3
RGBrgb(121, 92, 195)
HSLhsl(257, 46%, 56%)
HSVhsv(257, 53%, 76%)
CMYKcmyk(37.9%, 52.8%, 0%, 23.5%)
CIE-LABlab(46.52, 35.44, -50.03)
CIE-LCHlch(46.52, 61.30, 305.31°)
OKLaboklab(55.36% 0.0622 -0.1418)
OKLCHoklch(55.36% 0.155 293.7)
XYZxyz(21.5600, 15.6589, 53.5057)
Luminance0.1566 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795CC3 #A6C35C
analogous
#5C73C3 #795CC3 #AD5CC3
triadic
#795CC3 #C3795C #5CC379
tetradic
#795CC3 #C35C73 #A6C35C #5CC3AD
square
#795CC3 #C35C73 #A6C35C #5CC3AD
split-complementary
#795CC3 #C3AD5C #73C35C
monochromatic
#422C78 #5A3DA5 #795CC3 #9E89D3 #C3B5E4

Accessibility & contrast

On white

5.08
#795CC3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#795CC3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795CC3
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795CC3#FFFFFF#000000##FFFFFF
##795CC31.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#306FC7
Deuteranopia (green-blind)
#376CC1
Tritanopia (blue-blind)
#677187
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #795cc3;
/* rgb */ color: rgb(121, 92, 195);
/* oklch */ color: oklch(55.4% 0.155 293.7);
Tailwind
colors: {
  custom: {
    50: '#a48bd6',
    500: '#795cc3',
    950: '#000000',
  },
}
SCSS
$custom: #795cc3;
$custom-light: #a48bd6;
$custom-dark: #000000;
JSON
{
  "hex": "#795cc3",
  "rgb": {
    "r": 121,
    "g": 92,
    "b": 195
  },
  "hsl": {
    "h": 256.893,
    "s": 46.188,
    "l": 56.275
  },
  "oklch": {
    "l": 0.55362,
    "c": 0.15482,
    "h": 293.7
  },
  "luminance": 0.15659
}

Semantic roles & 50–950 ramp

primary
#795CC3
secondary
#C7D3A8
accent
#D652B1
background
#FAF8FD
surface
#F4F0FA
border
#CECBD3
text
#0F0C14
muted
#7F7D83

Preview Lab

Preview with #795CC3

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

Preview Lab → · Contrast checker → · Palette generator →

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