#795EC2#795EC2

#795EC2 is a mid, vivid violet. Relative luminance 0.160; OKLCH L 55.6% C 0.150 H 293.3°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#795EC2
RGBrgb(121, 94, 194)
HSLhsl(256, 45%, 56%)
HSVhsv(256, 52%, 76%)
CMYKcmyk(37.6%, 51.5%, 0%, 23.9%)
CIE-LABlab(46.93, 33.99, -48.80)
CIE-LCHlch(46.93, 59.47, 304.86°)
OKLaboklab(55.64% 0.0596 -0.1382)
OKLCHoklch(55.64% 0.15 293.3)
XYZxyz(21.6229, 15.9649, 52.9708)
Luminance0.1596 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795EC2 #A7C25E
analogous
#5E75C2 #795EC2 #AB5EC2
triadic
#795EC2 #C2795E #5EC279
tetradic
#795EC2 #C25E75 #A7C25E #5EC2AB
square
#795EC2 #C25E75 #A7C25E #5EC2AB
split-complementary
#795EC2 #C2AB5E #75C25E
monochromatic
#422E78 #5A3EA4 #795EC2 #9E8AD3 #C3B7E4

Accessibility & contrast

On white

5.01
#795EC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#795EC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795EC2
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795EC2#FFFFFF#000000##FFFFFF
##795EC21.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3670C5
Deuteranopia (green-blind)
#3B6DC0
Tritanopia (blue-blind)
#677287
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #795ec2;
/* rgb */ color: rgb(121, 94, 194);
/* oklch */ color: oklch(55.6% 0.150 293.3);
Tailwind
colors: {
  custom: {
    50: '#a38cd5',
    500: '#795ec2',
    950: '#000000',
  },
}
SCSS
$custom: #795ec2;
$custom-light: #a38cd5;
$custom-dark: #000000;
JSON
{
  "hex": "#795ec2",
  "rgb": {
    "r": 121,
    "g": 94,
    "b": 194
  },
  "hsl": {
    "h": 256.2,
    "s": 45.045,
    "l": 56.471
  },
  "oklch": {
    "l": 0.55644,
    "c": 0.15048,
    "h": 293.3
  },
  "luminance": 0.15965
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #795EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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