#795DD4#795DD4

#795DD4 is a mid, vivid violet. Relative luminance 0.166; OKLCH L 56.7% C 0.176 H 290.5°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#795DD4
RGBrgb(121, 93, 212)
HSLhsl(254, 58%, 60%)
HSVhsv(254, 56%, 83%)
CMYKcmyk(42.9%, 56.1%, 0%, 16.9%)
CIE-LABlab(47.81, 39.57, -57.72)
CIE-LCHlch(47.81, 69.98, 304.43°)
OKLaboklab(56.66% 0.0616 -0.1644)
OKLCHoklch(56.66% 0.176 290.5)
XYZxyz(23.6799, 16.6463, 64.2400)
Luminance0.1665 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795DD4 #B8D45D
analogous
#5D7CD4 #795DD4 #B55DD4
triadic
#795DD4 #D4795D #5DD479
tetradic
#795DD4 #D45D7C #B8D45D #5DD4B5
square
#795DD4 #D45D7C #B8D45D #5DD4B5
split-complementary
#795DD4 #D4B55D #7CD45D
monochromatic
#3F2690 #5433C1 #795DD4 #A18DE1 #C9BEEE

Accessibility & contrast

On white

4.85
#795DD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#795DD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795DD4
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795DD4#FFFFFF#000000##FFFFFF
##795DD41.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1974D8
Deuteranopia (green-blind)
#206FD1
Tritanopia (blue-blind)
#5F778F
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #795dd4;
/* rgb */ color: rgb(121, 93, 212);
/* oklch */ color: oklch(56.7% 0.176 290.5);
Tailwind
colors: {
  custom: {
    50: '#a58ce2',
    500: '#795dd4',
    950: '#000000',
  },
}
SCSS
$custom: #795dd4;
$custom-light: #a58ce2;
$custom-dark: #000000;
JSON
{
  "hex": "#795dd4",
  "rgb": {
    "r": 121,
    "g": 93,
    "b": 212
  },
  "hsl": {
    "h": 254.118,
    "s": 58.049,
    "l": 59.804
  },
  "oklch": {
    "l": 0.56656,
    "c": 0.17552,
    "h": 290.5
  },
  "luminance": 0.16647
}

Semantic roles & 50–950 ramp

primary
#795DD4
secondary
#D3DDAF
accent
#E147BD
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #795DD4

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

Preview Lab → · Contrast checker → · Palette generator →

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