#795ED4#795ED4

#795ED4 is a mid, vivid violet. Relative luminance 0.168; OKLCH L 56.8% C 0.174 H 290.3°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#795ED4
RGBrgb(121, 94, 212)
HSLhsl(254, 58%, 60%)
HSVhsv(254, 56%, 83%)
CMYKcmyk(42.9%, 55.7%, 0%, 16.9%)
CIE-LABlab(48.04, 38.99, -57.36)
CIE-LCHlch(48.04, 69.36, 304.21°)
OKLaboklab(56.82% 0.0604 -0.1633)
OKLCHoklch(56.82% 0.174 290.3)
XYZxyz(23.7682, 16.8230, 64.2694)
Luminance0.1682 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795ED4 #B9D45E
analogous
#5E7ED4 #795ED4 #B45ED4
triadic
#795ED4 #D4795E #5ED479
tetradic
#795ED4 #D45E7E #B9D45E #5ED4B4
square
#795ED4 #D45E7E #B9D45E #5ED4B4
split-complementary
#795ED4 #D4B45E #7ED45E
monochromatic
#3F2791 #5434C1 #795ED4 #A18EE1 #C9BFEE

Accessibility & contrast

On white

4.81
#795ED4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#795ED4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795ED4
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795ED4#FFFFFF#000000##FFFFFF
##795ED41.004.814.364.81
#FFFFFF4.811.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D74D8
Deuteranopia (green-blind)
#236FD1
Tritanopia (blue-blind)
#5F7890
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #795ed4;
/* rgb */ color: rgb(121, 94, 212);
/* oklch */ color: oklch(56.8% 0.174 290.3);
Tailwind
colors: {
  custom: {
    50: '#a58ce2',
    500: '#795ed4',
    950: '#000000',
  },
}
SCSS
$custom: #795ed4;
$custom-light: #a58ce2;
$custom-dark: #000000;
JSON
{
  "hex": "#795ed4",
  "rgb": {
    "r": 121,
    "g": 94,
    "b": 212
  },
  "hsl": {
    "h": 253.729,
    "s": 57.843,
    "l": 60
  },
  "oklch": {
    "l": 0.56822,
    "c": 0.17411,
    "h": 290.3
  },
  "luminance": 0.16824
}

Semantic roles & 50–950 ramp

primary
#795ED4
secondary
#D3DEB0
accent
#E147BE
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #795ED4

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

Preview Lab → · Contrast checker → · Palette generator →

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