#795DD2#795DD2

#795DD2 is a mid, vivid violet. Relative luminance 0.165; OKLCH L 56.5% C 0.173 H 290.8°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#795DD2
RGBrgb(121, 93, 210)
HSLhsl(254, 57%, 59%)
HSVhsv(254, 56%, 82%)
CMYKcmyk(42.4%, 55.7%, 0%, 17.6%)
CIE-LABlab(47.68, 39.01, -56.79)
CIE-LCHlch(47.68, 68.89, 304.49°)
OKLaboklab(56.52% 0.0615 -0.1616)
OKLCHoklch(56.52% 0.173 290.8)
XYZxyz(23.4292, 16.5461, 62.9195)
Luminance0.1655 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795DD2 #B6D25D
analogous
#5D7CD2 #795DD2 #B45DD2
triadic
#795DD2 #D2795D #5DD279
tetradic
#795DD2 #D25D7C #B6D25D #5DD2B4
square
#795DD2 #D25D7C #B6D25D #5DD2B4
split-complementary
#795DD2 #D2B45D #7CD25D
monochromatic
#40278D #5535BD #795DD2 #A18DDF #C8BDED

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##795DD2#FFFFFF#000000##FFFFFF
##795DD21.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)
#1D73D6
Deuteranopia (green-blind)
#246FCF
Tritanopia (blue-blind)
#60768E
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #795dd2;
/* rgb */ color: rgb(121, 93, 210);
/* oklch */ color: oklch(56.5% 0.173 290.8);
Tailwind
colors: {
  custom: {
    50: '#a58ce0',
    500: '#795dd2',
    950: '#000000',
  },
}
SCSS
$custom: #795dd2;
$custom-light: #a58ce0;
$custom-dark: #000000;
JSON
{
  "hex": "#795dd2",
  "rgb": {
    "r": 121,
    "g": 93,
    "b": 210
  },
  "hsl": {
    "h": 254.359,
    "s": 56.522,
    "l": 59.412
  },
  "oklch": {
    "l": 0.5652,
    "c": 0.17294,
    "h": 290.8
  },
  "luminance": 0.16547
}

Semantic roles & 50–950 ramp

primary
#795DD2
secondary
#D1DCAF
accent
#E048BB
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #795DD2

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

Preview Lab → · Contrast checker → · Palette generator →

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