#795BD3#795BD3

#795BD3 is a mid, vivid violet. Relative luminance 0.163; OKLCH L 56.3% C 0.177 H 291.1°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#795BD3
RGBrgb(121, 91, 211)
HSLhsl(255, 58%, 59%)
HSVhsv(255, 57%, 83%)
CMYKcmyk(42.7%, 56.9%, 0%, 17.3%)
CIE-LABlab(47.30, 40.44, -57.98)
CIE-LCHlch(47.30, 70.69, 304.90°)
OKLaboklab(56.26% 0.0639 -0.1651)
OKLCHoklch(56.26% 0.177 291.1)
XYZxyz(23.3809, 16.2495, 63.5200)
Luminance0.1625 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795BD3 #B5D35B
analogous
#5B79D3 #795BD3 #B55BD3
triadic
#795BD3 #D3795B #5BD379
tetradic
#795BD3 #D35B79 #B5D35B #5BD3B5
square
#795BD3 #D35B79 #B5D35B #5BD3B5
split-complementary
#795BD3 #D3B55B #79D35B
monochromatic
#40268E #5633BE #795BD3 #A08BE0 #C8BCED

Accessibility & contrast

On white

4.94
#795BD3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#795BD3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795BD3
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795BD3#FFFFFF#000000##FFFFFF
##795BD31.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1172D7
Deuteranopia (green-blind)
#1C6ED0
Tritanopia (blue-blind)
#5F758E
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #795bd3;
/* rgb */ color: rgb(121, 91, 211);
/* oklch */ color: oklch(56.3% 0.177 291.1);
Tailwind
colors: {
  custom: {
    50: '#a58ae1',
    500: '#795bd3',
    950: '#000000',
  },
}
SCSS
$custom: #795bd3;
$custom-light: #a58ae1;
$custom-dark: #000000;
JSON
{
  "hex": "#795bd3",
  "rgb": {
    "r": 121,
    "g": 91,
    "b": 211
  },
  "hsl": {
    "h": 255,
    "s": 57.692,
    "l": 59.216
  },
  "oklch": {
    "l": 0.56258,
    "c": 0.17705,
    "h": 291.1
  },
  "luminance": 0.1625
}

Semantic roles & 50–950 ramp

primary
#795BD3
secondary
#D1DCAD
accent
#E147BA
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #795BD3

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

Preview Lab → · Contrast checker → · Palette generator →

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