#795BC2#795BC2

#795BC2 is a mid, vivid violet. Relative luminance 0.154; OKLCH L 55.1% C 0.155 H 294.2°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#795BC2
RGBrgb(121, 91, 194)
HSLhsl(257, 46%, 56%)
HSVhsv(257, 53%, 76%)
CMYKcmyk(37.6%, 53.1%, 0%, 23.9%)
CIE-LABlab(46.23, 35.75, -49.91)
CIE-LCHlch(46.23, 61.39, 305.61°)
OKLaboklab(55.13% 0.0635 -0.1414)
OKLCHoklch(55.13% 0.155 294.2)
XYZxyz(21.3613, 15.4417, 52.8836)
Luminance0.1544 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795BC2 #A4C25B
analogous
#5B70C2 #795BC2 #AC5BC2
triadic
#795BC2 #C2795B #5BC279
tetradic
#795BC2 #C25B70 #A4C25B #5BC2AC
square
#795BC2 #C25B70 #A4C25B #5BC2AC
split-complementary
#795BC2 #C2AC5B #70C25B
monochromatic
#422C77 #5B3DA3 #795BC2 #9D88D3 #C2B4E3

Accessibility & contrast

On white

5.14
#795BC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#795BC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795BC2
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795BC2#FFFFFF#000000##FFFFFF
##795BC21.005.144.095.14
#FFFFFF5.141.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F6FC6
Deuteranopia (green-blind)
#366CC0
Tritanopia (blue-blind)
#677086
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #795bc2;
/* rgb */ color: rgb(121, 91, 194);
/* oklch */ color: oklch(55.1% 0.155 294.2);
Tailwind
colors: {
  custom: {
    50: '#a48ad5',
    500: '#795bc2',
    950: '#000000',
  },
}
SCSS
$custom: #795bc2;
$custom-light: #a48ad5;
$custom-dark: #000000;
JSON
{
  "hex": "#795bc2",
  "rgb": {
    "r": 121,
    "g": 91,
    "b": 194
  },
  "hsl": {
    "h": 257.476,
    "s": 45.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.55127,
    "c": 0.15501,
    "h": 294.2
  },
  "luminance": 0.15442
}

Semantic roles & 50–950 ramp

primary
#795BC2
secondary
#C5D2A7
accent
#D552AF
background
#FAF8FD
surface
#F4F0FA
border
#CECBD3
text
#0F0C14
muted
#7F7D83

Preview Lab

Preview with #795BC2

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

Preview Lab → · Contrast checker → · Palette generator →

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