#795AC0#795AC0

#795AC0 is a mid, vivid violet. Relative luminance 0.152; OKLCH L 54.8% C 0.154 H 294.8°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#795AC0
RGBrgb(121, 90, 192)
HSLhsl(258, 45%, 55%)
HSVhsv(258, 53%, 75%)
CMYKcmyk(37%, 53.1%, 0%, 24.7%)
CIE-LABlab(45.88, 35.79, -49.31)
CIE-LCHlch(45.88, 60.93, 305.97°)
OKLaboklab(54.83% 0.0646 -0.1397)
OKLCHoklch(54.83% 0.154 294.8)
XYZxyz(21.0533, 15.1826, 51.6803)
Luminance0.1518 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795AC0 #A1C05A
analogous
#5A6EC0 #795AC0 #AC5AC0
triadic
#795AC0 #C0795A #5AC079
tetradic
#795AC0 #C05A6E #A1C05A #5AC0AC
square
#795AC0 #C05A6E #A1C05A #5AC0AC
split-complementary
#795AC0 #C0AC5A #6EC05A
monochromatic
#422C73 #5B3DA0 #795AC0 #9D86D1 #C1B3E2

Accessibility & contrast

On white

5.20
#795AC0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#795AC0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795AC0
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795AC0#FFFFFF#000000##FFFFFF
##795AC01.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F6EC3
Deuteranopia (green-blind)
#376BBE
Tritanopia (blue-blind)
#686F84
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #795ac0;
/* rgb */ color: rgb(121, 90, 192);
/* oklch */ color: oklch(54.8% 0.154 294.8);
Tailwind
colors: {
  custom: {
    50: '#a389d3',
    500: '#795ac0',
    950: '#000000',
  },
}
SCSS
$custom: #795ac0;
$custom-light: #a389d3;
$custom-dark: #000000;
JSON
{
  "hex": "#795ac0",
  "rgb": {
    "r": 121,
    "g": 90,
    "b": 192
  },
  "hsl": {
    "h": 258.235,
    "s": 44.737,
    "l": 55.294
  },
  "oklch": {
    "l": 0.54829,
    "c": 0.15389,
    "h": 294.8
  },
  "luminance": 0.15183
}

Semantic roles & 50–950 ramp

primary
#795AC0
secondary
#C3D0A6
accent
#D453AD
background
#FAF8FD
surface
#F4F0FA
border
#CECBD3
text
#0F0B14
muted
#7F7C83

Preview Lab

Preview with #795AC0

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

Preview Lab → · Contrast checker → · Palette generator →

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