#795BD4#795BD4

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

Color values

HEX#795BD4
RGBrgb(121, 91, 212)
HSLhsl(255, 58%, 59%)
HSVhsv(255, 57%, 83%)
CMYKcmyk(42.9%, 57.1%, 0%, 16.9%)
CIE-LABlab(47.37, 40.72, -58.44)
CIE-LCHlch(47.37, 71.23, 304.87°)
OKLaboklab(56.33% 0.0639 -0.1665)
OKLCHoklch(56.33% 0.178 291)
XYZxyz(23.5066, 16.2998, 64.1822)
Luminance0.1630 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795BD4 #B6D45B
analogous
#5B7AD4 #795BD4 #B65BD4
triadic
#795BD4 #D4795B #5BD479
tetradic
#795BD4 #D45B7A #B6D45B #5BD4B6
square
#795BD4 #D45B7A #B6D45B #5BD4B6
split-complementary
#795BD4 #D4B65B #7AD45B
monochromatic
#40268F #5532C0 #795BD4 #A18BE1 #C8BCED

Accessibility & contrast

On white

4.93
#795BD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#795BD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795BD4
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795BD4#FFFFFF#000000##FFFFFF
##795BD41.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E72D8
Deuteranopia (green-blind)
#1A6ED1
Tritanopia (blue-blind)
#5F768F
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #795bd4;
/* rgb */ color: rgb(121, 91, 212);
/* oklch */ color: oklch(56.3% 0.178 291.0);
Tailwind
colors: {
  custom: {
    50: '#a58ae2',
    500: '#795bd4',
    950: '#000000',
  },
}
SCSS
$custom: #795bd4;
$custom-light: #a58ae2;
$custom-dark: #000000;
JSON
{
  "hex": "#795bd4",
  "rgb": {
    "r": 121,
    "g": 91,
    "b": 212
  },
  "hsl": {
    "h": 254.876,
    "s": 58.454,
    "l": 59.412
  },
  "oklch": {
    "l": 0.56327,
    "c": 0.17832,
    "h": 291
  },
  "luminance": 0.16301
}

Semantic roles & 50–950 ramp

primary
#795BD4
secondary
#D1DDAE
accent
#E246BB
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #795BD4

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

Preview Lab → · Contrast checker → · Palette generator →

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