#795BCC#795BCC

#795BCC is a mid, vivid violet. Relative luminance 0.159; OKLCH L 55.8% C 0.168 H 292.3°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#795BCC
RGBrgb(121, 91, 204)
HSLhsl(256, 53%, 58%)
HSVhsv(256, 55%, 80%)
CMYKcmyk(40.7%, 55.4%, 0%, 20%)
CIE-LABlab(46.85, 38.50, -54.69)
CIE-LCHlch(46.85, 66.88, 305.14°)
OKLaboklab(55.78% 0.0638 -0.1554)
OKLCHoklch(55.78% 0.168 292.3)
XYZxyz(22.5224, 15.9061, 58.9986)
Luminance0.1591 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795BCC #AECC5B
analogous
#5B76CC #795BCC #B15BCC
triadic
#795BCC #CC795B #5BCC79
tetradic
#795BCC #CC5B76 #AECC5B #5BCCB1
square
#795BCC #CC5B76 #AECC5B #5BCCB1
split-complementary
#795BCC #CCB15B #76CC5B
monochromatic
#412984 #5837B2 #795BCC #9F8ADB #C5B8E9

Accessibility & contrast

On white

5.02
#795BCC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#795BCC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795BCC
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795BCC#FFFFFF#000000##FFFFFF
##795BCC1.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2171D0
Deuteranopia (green-blind)
#296DC9
Tritanopia (blue-blind)
#63738B
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #795bcc;
/* rgb */ color: rgb(121, 91, 204);
/* oklch */ color: oklch(55.8% 0.168 292.3);
Tailwind
colors: {
  custom: {
    50: '#a58adc',
    500: '#795bcc',
    950: '#000000',
  },
}
SCSS
$custom: #795bcc;
$custom-light: #a58adc;
$custom-dark: #000000;
JSON
{
  "hex": "#795bcc",
  "rgb": {
    "r": 121,
    "g": 91,
    "b": 204
  },
  "hsl": {
    "h": 255.929,
    "s": 52.558,
    "l": 57.843
  },
  "oklch": {
    "l": 0.55783,
    "c": 0.16804,
    "h": 292.3
  },
  "luminance": 0.15907
}

Semantic roles & 50–950 ramp

primary
#795BCC
secondary
#CCD8AB
accent
#DC4CB6
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #795BCC

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

Preview Lab → · Contrast checker → · Palette generator →

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