#795FC2#795FC2

#795FC2 is a mid, vivid violet. Relative luminance 0.161; OKLCH L 55.8% C 0.149 H 293.1°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#795FC2
RGBrgb(121, 95, 194)
HSLhsl(256, 45%, 57%)
HSVhsv(256, 51%, 76%)
CMYKcmyk(37.6%, 51%, 0%, 23.9%)
CIE-LABlab(47.16, 33.40, -48.43)
CIE-LCHlch(47.16, 58.83, 304.59°)
OKLaboklab(55.82% 0.0583 -0.1371)
OKLCHoklch(55.82% 0.149 293.1)
XYZxyz(21.7124, 16.1439, 53.0006)
Luminance0.1614 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795FC2 #A8C25F
analogous
#5F77C2 #795FC2 #AB5FC2
triadic
#795FC2 #C2795F #5FC279
tetradic
#795FC2 #C25F77 #A8C25F #5FC2AB
square
#795FC2 #C25F77 #A8C25F #5FC2AB
split-complementary
#795FC2 #C2AB5F #77C25F
monochromatic
#422E79 #5A3FA5 #795FC2 #9E8BD3 #C3B8E4

Accessibility & contrast

On white

4.97
#795FC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#795FC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795FC2
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795FC2#FFFFFF#000000##FFFFFF
##795FC21.004.974.234.97
#FFFFFF4.971.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3871C5
Deuteranopia (green-blind)
#3C6EC0
Tritanopia (blue-blind)
#677387
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #795fc2;
/* rgb */ color: rgb(121, 95, 194);
/* oklch */ color: oklch(55.8% 0.149 293.1);
Tailwind
colors: {
  custom: {
    50: '#a38dd5',
    500: '#795fc2',
    950: '#000000',
  },
}
SCSS
$custom: #795fc2;
$custom-light: #a38dd5;
$custom-dark: #000000;
JSON
{
  "hex": "#795fc2",
  "rgb": {
    "r": 121,
    "g": 95,
    "b": 194
  },
  "hsl": {
    "h": 255.758,
    "s": 44.796,
    "l": 56.667
  },
  "oklch": {
    "l": 0.55819,
    "c": 0.14896,
    "h": 293.1
  },
  "luminance": 0.16144
}

Semantic roles & 50–950 ramp

primary
#795FC2
secondary
#C8D3AA
accent
#D453B3
background
#FAF8FD
surface
#F4F0FA
border
#CECBD3
text
#0F0C14
muted
#7F7D83

Preview Lab

Preview with #795FC2

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

Preview Lab → · Contrast checker → · Palette generator →

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