#795AC2#795AC2

#795AC2 is a mid, vivid violet. Relative luminance 0.153; OKLCH L 55.0% C 0.157 H 294.4°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#795AC2
RGBrgb(121, 90, 194)
HSLhsl(258, 46%, 56%)
HSVhsv(258, 54%, 76%)
CMYKcmyk(37.6%, 53.6%, 0%, 23.9%)
CIE-LABlab(46.00, 36.33, -50.28)
CIE-LCHlch(46.00, 62.03, 305.85°)
OKLaboklab(54.96% 0.0647 -0.1425)
OKLCHoklch(54.96% 0.157 294.4)
XYZxyz(21.2764, 15.2719, 52.8553)
Luminance0.1527 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795AC2 #A3C25A
analogous
#5A6FC2 #795AC2 #AD5AC2
triadic
#795AC2 #C2795A #5AC279
tetradic
#795AC2 #C25A6F #A3C25A #5AC2AD
square
#795AC2 #C25A6F #A3C25A #5AC2AD
split-complementary
#795AC2 #C2AD5A #6FC25A
monochromatic
#422C76 #5B3CA3 #795AC2 #9D87D3 #C2B3E3

Accessibility & contrast

On white

5.18
#795AC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#795AC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795AC2
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795AC2#FFFFFF#000000##FFFFFF
##795AC21.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D6EC6
Deuteranopia (green-blind)
#356BC0
Tritanopia (blue-blind)
#676F85
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #795ac2;
/* rgb */ color: rgb(121, 90, 194);
/* oklch */ color: oklch(55.0% 0.157 294.4);
Tailwind
colors: {
  custom: {
    50: '#a489d5',
    500: '#795ac2',
    950: '#000000',
  },
}
SCSS
$custom: #795ac2;
$custom-light: #a489d5;
$custom-dark: #000000;
JSON
{
  "hex": "#795ac2",
  "rgb": {
    "r": 121,
    "g": 90,
    "b": 194
  },
  "hsl": {
    "h": 257.885,
    "s": 46.018,
    "l": 55.686
  },
  "oklch": {
    "l": 0.54957,
    "c": 0.15651,
    "h": 294.4
  },
  "luminance": 0.15272
}

Semantic roles & 50–950 ramp

primary
#795AC2
secondary
#C5D2A6
accent
#D652AE
background
#FAF8FD
surface
#F4F0FA
border
#CECBD3
text
#0F0B14
muted
#7F7C83

Preview Lab

Preview with #795AC2

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

Preview Lab → · Contrast checker → · Palette generator →

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