#795ED6#795ED6

#795ED6 is a mid, vivid violet. Relative luminance 0.169; OKLCH L 57.0% C 0.177 H 290.0°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#795ED6
RGBrgb(121, 94, 214)
HSLhsl(254, 59%, 60%)
HSVhsv(254, 56%, 84%)
CMYKcmyk(43.5%, 56.1%, 0%, 16.1%)
CIE-LABlab(48.16, 39.55, -58.30)
CIE-LCHlch(48.16, 70.45, 304.16°)
OKLaboklab(56.96% 0.0604 -0.166)
OKLCHoklch(56.96% 0.177 290)
XYZxyz(24.0221, 16.9246, 65.6064)
Luminance0.1693 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795ED6 #BBD65E
analogous
#5E7FD6 #795ED6 #B55ED6
triadic
#795ED6 #D6795E #5ED679
tetradic
#795ED6 #D65E7F #BBD65E #5ED6B5
square
#795ED6 #D65E7F #BBD65E #5ED6B5
split-complementary
#795ED6 #D6B55E #7FD65E
monochromatic
#3E2694 #5332C5 #795ED6 #A28FE2 #CAC0EF

Accessibility & contrast

On white

4.79
#795ED6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#795ED6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795ED6
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795ED6#FFFFFF#000000##FFFFFF
##795ED61.004.794.394.79
#FFFFFF4.791.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1875DA
Deuteranopia (green-blind)
#1E70D3
Tritanopia (blue-blind)
#5E7891
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #795ed6;
/* rgb */ color: rgb(121, 94, 214);
/* oklch */ color: oklch(57.0% 0.177 290.0);
Tailwind
colors: {
  custom: {
    50: '#a58ce3',
    500: '#795ed6',
    950: '#000000',
  },
}
SCSS
$custom: #795ed6;
$custom-light: #a58ce3;
$custom-dark: #000000;
JSON
{
  "hex": "#795ed6",
  "rgb": {
    "r": 121,
    "g": 94,
    "b": 214
  },
  "hsl": {
    "h": 253.5,
    "s": 59.406,
    "l": 60.392
  },
  "oklch": {
    "l": 0.56958,
    "c": 0.17669,
    "h": 290
  },
  "luminance": 0.16925
}

Semantic roles & 50–950 ramp

primary
#795ED6
secondary
#D5DFB1
accent
#C71EA1
background
#FAF8FE
surface
#F4F0FC
border
#CECBD5
text
#100C15
muted
#7F7D84

Preview Lab

Preview with #795ED6

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

Preview Lab → · Contrast checker → · Palette generator →

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