#795ED3#795ED3

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

Color values

HEX#795ED3
RGBrgb(121, 94, 211)
HSLhsl(254, 57%, 60%)
HSVhsv(254, 55%, 83%)
CMYKcmyk(42.7%, 55.5%, 0%, 17.3%)
CIE-LABlab(47.97, 38.71, -56.89)
CIE-LCHlch(47.97, 68.81, 304.23°)
OKLaboklab(56.75% 0.0604 -0.1619)
OKLCHoklch(56.75% 0.173 290.4)
XYZxyz(23.6425, 16.7727, 63.6072)
Luminance0.1677 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795ED3 #B8D35E
analogous
#5E7ED3 #795ED3 #B35ED3
triadic
#795ED3 #D3795E #5ED379
tetradic
#795ED3 #D35E7E #B8D35E #5ED3B3
square
#795ED3 #D35E7E #B8D35E #5ED3B3
split-complementary
#795ED3 #D3B35E #7ED35E
monochromatic
#3F278F #5434BF #795ED3 #A18EE0 #C9BEED

Accessibility & contrast

On white

4.82
#795ED3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#795ED3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795ED3
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795ED3#FFFFFF#000000##FFFFFF
##795ED31.004.824.354.82
#FFFFFF4.821.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F74D7
Deuteranopia (green-blind)
#246FD0
Tritanopia (blue-blind)
#5F778F
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #795ed3;
/* rgb */ color: rgb(121, 94, 211);
/* oklch */ color: oklch(56.8% 0.173 290.4);
Tailwind
colors: {
  custom: {
    50: '#a58ce1',
    500: '#795ed3',
    950: '#000000',
  },
}
SCSS
$custom: #795ed3;
$custom-light: #a58ce1;
$custom-dark: #000000;
JSON
{
  "hex": "#795ed3",
  "rgb": {
    "r": 121,
    "g": 94,
    "b": 211
  },
  "hsl": {
    "h": 253.846,
    "s": 57.073,
    "l": 59.804
  },
  "oklch": {
    "l": 0.56754,
    "c": 0.17281,
    "h": 290.4
  },
  "luminance": 0.16774
}

Semantic roles & 50–950 ramp

primary
#795ED3
secondary
#D3DDB0
accent
#E047BD
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #795ED3

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

Preview Lab → · Contrast checker → · Palette generator →

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