#795ACC#795ACC

#795ACC is a mid, vivid violet. Relative luminance 0.157; OKLCH L 55.6% C 0.169 H 292.6°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#795ACC
RGBrgb(121, 90, 204)
HSLhsl(256, 53%, 58%)
HSVhsv(256, 56%, 80%)
CMYKcmyk(40.7%, 55.9%, 0%, 20%)
CIE-LABlab(46.63, 39.07, -55.05)
CIE-LCHlch(46.63, 67.51, 305.37°)
OKLaboklab(55.62% 0.065 -0.1565)
OKLCHoklch(55.62% 0.169 292.6)
XYZxyz(22.4375, 15.7363, 58.9703)
Luminance0.1574 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795ACC #ADCC5A
analogous
#5A74CC #795ACC #B25ACC
triadic
#795ACC #CC795A #5ACC79
tetradic
#795ACC #CC5A74 #ADCC5A #5ACCB2
square
#795ACC #CC5A74 #ADCC5A #5ACCB2
split-complementary
#795ACC #CCB25A #74CC5A
monochromatic
#412983 #5837B2 #795ACC #9F89DA #C5B7E9

Accessibility & contrast

On white

5.06
#795ACC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#795ACC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795ACC
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795ACC#FFFFFF#000000##FFFFFF
##795ACC1.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E70D0
Deuteranopia (green-blind)
#276CC9
Tritanopia (blue-blind)
#63728A
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #795acc;
/* rgb */ color: rgb(121, 90, 204);
/* oklch */ color: oklch(55.6% 0.169 292.6);
Tailwind
colors: {
  custom: {
    50: '#a589dc',
    500: '#795acc',
    950: '#000000',
  },
}
SCSS
$custom: #795acc;
$custom-light: #a589dc;
$custom-dark: #000000;
JSON
{
  "hex": "#795acc",
  "rgb": {
    "r": 121,
    "g": 90,
    "b": 204
  },
  "hsl": {
    "h": 256.316,
    "s": 52.778,
    "l": 57.647
  },
  "oklch": {
    "l": 0.55617,
    "c": 0.16948,
    "h": 292.6
  },
  "luminance": 0.15737
}

Semantic roles & 50–950 ramp

primary
#795ACC
secondary
#CBD8AA
accent
#DC4CB5
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #795ACC

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

Preview Lab → · Contrast checker → · Palette generator →

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