#795BCF#795BCF

#795BCF is a mid, vivid violet. Relative luminance 0.161; OKLCH L 56.0% C 0.172 H 291.8°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#795BCF
RGBrgb(121, 91, 207)
HSLhsl(256, 55%, 58%)
HSVhsv(256, 56%, 81%)
CMYKcmyk(41.5%, 56%, 0%, 18.8%)
CIE-LABlab(47.04, 39.33, -56.10)
CIE-LCHlch(47.04, 68.51, 305.03°)
OKLaboklab(55.99% 0.0639 -0.1596)
OKLCHoklch(55.99% 0.172 291.8)
XYZxyz(22.8857, 16.0514, 60.9118)
Luminance0.1605 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795BCF #B1CF5B
analogous
#5B77CF #795BCF #B35BCF
triadic
#795BCF #CF795B #5BCF79
tetradic
#795BCF #CF5B77 #B1CF5B #5BCFB3
square
#795BCF #CF5B77 #B1CF5B #5BCFB3
split-complementary
#795BCF #CFB35B #77CF5B
monochromatic
#412888 #5736B7 #795BCF #A08ADD #C6BAEB

Accessibility & contrast

On white

4.99
#795BCF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#795BCF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795BCF
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795BCF#FFFFFF#000000##FFFFFF
##795BCF1.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C71D3
Deuteranopia (green-blind)
#246DCC
Tritanopia (blue-blind)
#61748C
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #795bcf;
/* rgb */ color: rgb(121, 91, 207);
/* oklch */ color: oklch(56.0% 0.172 291.8);
Tailwind
colors: {
  custom: {
    50: '#a58ade',
    500: '#795bcf',
    950: '#000000',
  },
}
SCSS
$custom: #795bcf;
$custom-light: #a58ade;
$custom-dark: #000000;
JSON
{
  "hex": "#795bcf",
  "rgb": {
    "r": 121,
    "g": 91,
    "b": 207
  },
  "hsl": {
    "h": 255.517,
    "s": 54.717,
    "l": 58.431
  },
  "oklch": {
    "l": 0.55985,
    "c": 0.17191,
    "h": 291.8
  },
  "luminance": 0.16052
}

Semantic roles & 50–950 ramp

primary
#795BCF
secondary
#CEDAAC
accent
#DE4AB8
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #795BCF

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

Preview Lab → · Contrast checker → · Palette generator →

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