#795DCB#795DCB

#795DCB is a mid, vivid violet. Relative luminance 0.162; OKLCH L 56.1% C 0.164 H 292.0°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#795DCB
RGBrgb(121, 93, 203)
HSLhsl(255, 51%, 58%)
HSVhsv(255, 54%, 80%)
CMYKcmyk(40.4%, 54.2%, 0%, 20.4%)
CIE-LABlab(47.24, 37.06, -53.48)
CIE-LCHlch(47.24, 65.07, 304.72°)
OKLaboklab(56.05% 0.0614 -0.1519)
OKLCHoklch(56.05% 0.164 292)
XYZxyz(22.5761, 16.2048, 58.4267)
Luminance0.1620 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795DCB #AFCB5D
analogous
#5D78CB #795DCB #B05DCB
triadic
#795DCB #CB795D #5DCB79
tetradic
#795DCB #CB5D78 #AFCB5D #5DCBB0
square
#795DCB #CB5D78 #AFCB5D #5DCBB0
split-complementary
#795DCB #CBB05D #78CB5D
monochromatic
#412A83 #5839B2 #795DCB #9F8BDA #C6BAE9

Accessibility & contrast

On white

4.95
#795DCB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#795DCB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795DCB
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795DCB#FFFFFF#000000##FFFFFF
##795DCB1.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2972CF
Deuteranopia (green-blind)
#2F6EC9
Tritanopia (blue-blind)
#63748B
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #795dcb;
/* rgb */ color: rgb(121, 93, 203);
/* oklch */ color: oklch(56.1% 0.164 292.0);
Tailwind
colors: {
  custom: {
    50: '#a48cdb',
    500: '#795dcb',
    950: '#000000',
  },
}
SCSS
$custom: #795dcb;
$custom-light: #a48cdb;
$custom-dark: #000000;
JSON
{
  "hex": "#795dcb",
  "rgb": {
    "r": 121,
    "g": 93,
    "b": 203
  },
  "hsl": {
    "h": 255.273,
    "s": 51.402,
    "l": 58.039
  },
  "oklch": {
    "l": 0.56052,
    "c": 0.16383,
    "h": 292
  },
  "luminance": 0.16205
}

Semantic roles & 50–950 ramp

primary
#795DCB
secondary
#CDD8AC
accent
#DB4DB7
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #795DCB

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

Preview Lab → · Contrast checker → · Palette generator →

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