#795ED2#795ED2

#795ED2 is a mid, vivid violet. Relative luminance 0.167; OKLCH L 56.7% C 0.172 H 290.6°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#795ED2
RGBrgb(121, 94, 210)
HSLhsl(254, 56%, 60%)
HSVhsv(254, 55%, 82%)
CMYKcmyk(42.4%, 55.2%, 0%, 17.6%)
CIE-LABlab(47.91, 38.43, -56.42)
CIE-LCHlch(47.91, 68.27, 304.26°)
OKLaboklab(56.69% 0.0603 -0.1605)
OKLCHoklch(56.69% 0.172 290.6)
XYZxyz(23.5175, 16.7227, 62.9490)
Luminance0.1672 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795ED2 #B7D25E
analogous
#5E7DD2 #795ED2 #B35ED2
triadic
#795ED2 #D2795E #5ED279
tetradic
#795ED2 #D25E7D #B7D25E #5ED2B3
square
#795ED2 #D25E7D #B7D25E #5ED2B3
split-complementary
#795ED2 #D2B35E #7DD25E
monochromatic
#3F288E #5535BE #795ED2 #A18EDF #C9BEED

Accessibility & contrast

On white

4.83
#795ED2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#795ED2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795ED2
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795ED2#FFFFFF#000000##FFFFFF
##795ED21.004.834.344.83
#FFFFFF4.831.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2174D6
Deuteranopia (green-blind)
#266FCF
Tritanopia (blue-blind)
#60778F
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #795ed2;
/* rgb */ color: rgb(121, 94, 210);
/* oklch */ color: oklch(56.7% 0.172 290.6);
Tailwind
colors: {
  custom: {
    50: '#a58ce0',
    500: '#795ed2',
    950: '#000000',
  },
}
SCSS
$custom: #795ed2;
$custom-light: #a58ce0;
$custom-dark: #000000;
JSON
{
  "hex": "#795ed2",
  "rgb": {
    "r": 121,
    "g": 94,
    "b": 210
  },
  "hsl": {
    "h": 253.966,
    "s": 56.311,
    "l": 59.608
  },
  "oklch": {
    "l": 0.56687,
    "c": 0.17151,
    "h": 290.6
  },
  "luminance": 0.16723
}

Semantic roles & 50–950 ramp

primary
#795ED2
secondary
#D2DCAF
accent
#E048BC
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #795ED2

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

Preview Lab → · Contrast checker → · Palette generator →

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