#795BCB#795BCB

#795BCB is a mid, vivid violet. Relative luminance 0.159; OKLCH L 55.7% C 0.167 H 292.5°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#795BCB
RGBrgb(121, 91, 203)
HSLhsl(256, 52%, 58%)
HSVhsv(256, 55%, 80%)
CMYKcmyk(40.4%, 55.2%, 0%, 20.4%)
CIE-LABlab(46.79, 38.22, -54.21)
CIE-LCHlch(46.79, 66.33, 305.18°)
OKLaboklab(55.72% 0.0638 -0.1541)
OKLCHoklch(55.72% 0.167 292.5)
XYZxyz(22.4028, 15.8583, 58.3689)
Luminance0.1586 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795BCB #ADCB5B
analogous
#5B75CB #795BCB #B15BCB
triadic
#795BCB #CB795B #5BCB79
tetradic
#795BCB #CB5B75 #ADCB5B #5BCBB1
square
#795BCB #CB5B75 #ADCB5B #5BCBB1
split-complementary
#795BCB #CBB15B #75CB5B
monochromatic
#412982 #5838B1 #795BCB #9F89DA #C5B8E8

Accessibility & contrast

On white

5.03
#795BCB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#795BCB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795BCB
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795BCB#FFFFFF#000000##FFFFFF
##795BCB1.005.034.175.03
#FFFFFF5.031.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2370CF
Deuteranopia (green-blind)
#2B6DC9
Tritanopia (blue-blind)
#63738A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #795bcb;
/* rgb */ color: rgb(121, 91, 203);
/* oklch */ color: oklch(55.7% 0.167 292.5);
Tailwind
colors: {
  custom: {
    50: '#a48adb',
    500: '#795bcb',
    950: '#000000',
  },
}
SCSS
$custom: #795bcb;
$custom-light: #a48adb;
$custom-dark: #000000;
JSON
{
  "hex": "#795bcb",
  "rgb": {
    "r": 121,
    "g": 91,
    "b": 203
  },
  "hsl": {
    "h": 256.071,
    "s": 51.852,
    "l": 57.647
  },
  "oklch": {
    "l": 0.55716,
    "c": 0.16674,
    "h": 292.5
  },
  "luminance": 0.15859
}

Semantic roles & 50–950 ramp

primary
#795BCB
secondary
#CBD7AA
accent
#DB4CB5
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #795BCB

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

Preview Lab → · Contrast checker → · Palette generator →

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