#795CC2#795CC2

#795CC2 is a mid, vivid violet. Relative luminance 0.156; OKLCH L 55.3% C 0.153 H 293.9°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#795CC2
RGBrgb(121, 92, 194)
HSLhsl(257, 46%, 56%)
HSVhsv(257, 53%, 76%)
CMYKcmyk(37.6%, 52.6%, 0%, 23.9%)
CIE-LABlab(46.46, 35.16, -49.54)
CIE-LCHlch(46.46, 60.75, 305.36°)
OKLaboklab(55.3% 0.0622 -0.1403)
OKLCHoklch(55.3% 0.154 293.9)
XYZxyz(21.4474, 15.6138, 52.9123)
Luminance0.1561 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795CC2 #A5C25C
analogous
#5C72C2 #795CC2 #AC5CC2
triadic
#795CC2 #C2795C #5CC279
tetradic
#795CC2 #C25C72 #A5C25C #5CC2AC
square
#795CC2 #C25C72 #A5C25C #5CC2AC
split-complementary
#795CC2 #C2AC5C #72C25C
monochromatic
#422D77 #5A3DA4 #795CC2 #9E89D3 #C2B5E3

Accessibility & contrast

On white

5.09
#795CC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#795CC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795CC2
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795CC2#FFFFFF#000000##FFFFFF
##795CC21.005.094.125.09
#FFFFFF5.091.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#316FC6
Deuteranopia (green-blind)
#386CC0
Tritanopia (blue-blind)
#677186
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #795cc2;
/* rgb */ color: rgb(121, 92, 194);
/* oklch */ color: oklch(55.3% 0.153 293.9);
Tailwind
colors: {
  custom: {
    50: '#a48bd5',
    500: '#795cc2',
    950: '#000000',
  },
}
SCSS
$custom: #795cc2;
$custom-light: #a48bd5;
$custom-dark: #000000;
JSON
{
  "hex": "#795cc2",
  "rgb": {
    "r": 121,
    "g": 92,
    "b": 194
  },
  "hsl": {
    "h": 257.059,
    "s": 45.536,
    "l": 56.078
  },
  "oklch": {
    "l": 0.55298,
    "c": 0.1535,
    "h": 293.9
  },
  "luminance": 0.15614
}

Semantic roles & 50–950 ramp

primary
#795CC2
secondary
#C6D2A8
accent
#D553B0
background
#FAF8FD
surface
#F4F0FA
border
#CECBD3
text
#0F0C14
muted
#7F7D83

Preview Lab

Preview with #795CC2

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

Preview Lab → · Contrast checker → · Palette generator →

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