#795FCB#795FCB

#795FCB is a mid, vivid violet. Relative luminance 0.166; OKLCH L 56.4% C 0.161 H 291.5°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#795FCB
RGBrgb(121, 95, 203)
HSLhsl(254, 51%, 58%)
HSVhsv(254, 53%, 80%)
CMYKcmyk(40.4%, 53.2%, 0%, 20.4%)
CIE-LABlab(47.70, 35.89, -52.75)
CIE-LCHlch(47.70, 63.80, 304.23°)
OKLaboklab(56.39% 0.0589 -0.1497)
OKLCHoklch(56.39% 0.161 291.5)
XYZxyz(22.7539, 16.5605, 58.4860)
Luminance0.1656 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795FCB #B1CB5F
analogous
#5F7BCB #795FCB #AF5FCB
triadic
#795FCB #CB795F #5FCB79
tetradic
#795FCB #CB5F7B #B1CB5F #5FCBAF
square
#795FCB #CB5F7B #B1CB5F #5FCBAF
split-complementary
#795FCB #CBAF5F #7BCB5F
monochromatic
#412B85 #573AB3 #795FCB #A08DDA #C6BBE9

Accessibility & contrast

On white

4.87
#795FCB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#795FCB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795FCB
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795FCB#FFFFFF#000000##FFFFFF
##795FCB1.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E73CF
Deuteranopia (green-blind)
#336FC9
Tritanopia (blue-blind)
#63768C
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #795fcb;
/* rgb */ color: rgb(121, 95, 203);
/* oklch */ color: oklch(56.4% 0.161 291.5);
Tailwind
colors: {
  custom: {
    50: '#a48ddb',
    500: '#795fcb',
    950: '#000000',
  },
}
SCSS
$custom: #795fcb;
$custom-light: #a48ddb;
$custom-dark: #000000;
JSON
{
  "hex": "#795fcb",
  "rgb": {
    "r": 121,
    "g": 95,
    "b": 203
  },
  "hsl": {
    "h": 254.444,
    "s": 50.943,
    "l": 58.431
  },
  "oklch": {
    "l": 0.56393,
    "c": 0.16091,
    "h": 291.5
  },
  "luminance": 0.16561
}

Semantic roles & 50–950 ramp

primary
#795FCB
secondary
#CED8AD
accent
#DA4DB8
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #795FCB

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

Preview Lab → · Contrast checker → · Palette generator →

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