#795DC2#795DC2

#795DC2 is a mid, vivid violet. Relative luminance 0.158; OKLCH L 55.5% C 0.152 H 293.6°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#795DC2
RGBrgb(121, 93, 194)
HSLhsl(257, 45%, 56%)
HSVhsv(257, 52%, 76%)
CMYKcmyk(37.6%, 52.1%, 0%, 23.9%)
CIE-LABlab(46.70, 34.58, -49.17)
CIE-LCHlch(46.70, 60.11, 305.11°)
OKLaboklab(55.47% 0.0609 -0.1393)
OKLCHoklch(55.47% 0.152 293.6)
XYZxyz(21.5346, 15.7882, 52.9413)
Luminance0.1579 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795DC2 #A6C25D
analogous
#5D74C2 #795DC2 #AC5DC2
triadic
#795DC2 #C2795D #5DC279
tetradic
#795DC2 #C25D74 #A6C25D #5DC2AC
square
#795DC2 #C25D74 #A6C25D #5DC2AC
split-complementary
#795DC2 #C2AC5D #74C25D
monochromatic
#422D78 #5A3EA4 #795DC2 #9E89D3 #C3B6E3

Accessibility & contrast

On white

5.05
#795DC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#795DC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795DC2
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795DC2#FFFFFF#000000##FFFFFF
##795DC21.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3470C6
Deuteranopia (green-blind)
#396DC0
Tritanopia (blue-blind)
#677187
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #795dc2;
/* rgb */ color: rgb(121, 93, 194);
/* oklch */ color: oklch(55.5% 0.152 293.6);
Tailwind
colors: {
  custom: {
    50: '#a38bd5',
    500: '#795dc2',
    950: '#000000',
  },
}
SCSS
$custom: #795dc2;
$custom-light: #a38bd5;
$custom-dark: #000000;
JSON
{
  "hex": "#795dc2",
  "rgb": {
    "r": 121,
    "g": 93,
    "b": 194
  },
  "hsl": {
    "h": 256.634,
    "s": 45.291,
    "l": 56.275
  },
  "oklch": {
    "l": 0.5547,
    "c": 0.15198,
    "h": 293.6
  },
  "luminance": 0.15789
}

Semantic roles & 50–950 ramp

primary
#795DC2
secondary
#C7D2A9
accent
#D553B1
background
#FAF8FD
surface
#F4F0FA
border
#CECBD3
text
#0F0C14
muted
#7F7D83

Preview Lab

Preview with #795DC2

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

Preview Lab → · Contrast checker → · Palette generator →

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