#795ED8#795ED8

#795ED8 is a mid, vivid violet. Relative luminance 0.170; OKLCH L 57.1% C 0.179 H 289.7°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#795ED8
RGBrgb(121, 94, 216)
HSLhsl(253, 61%, 61%)
HSVhsv(253, 56%, 85%)
CMYKcmyk(44%, 56.5%, 0%, 15.3%)
CIE-LABlab(48.29, 40.12, -59.23)
CIE-LCHlch(48.29, 71.53, 304.11°)
OKLaboklab(57.1% 0.0604 -0.1688)
OKLCHoklch(57.1% 0.179 289.7)
XYZxyz(24.2790, 17.0274, 66.9598)
Luminance0.1703 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795ED8 #BDD85E
analogous
#5E80D8 #795ED8 #B65ED8
triadic
#795ED8 #D8795E #5ED879
tetradic
#795ED8 #D85E80 #BDD85E #5ED8B6
square
#795ED8 #D85E80 #BDD85E #5ED8B6
split-complementary
#795ED8 #D8B65E #80D85E
monochromatic
#3E2597 #5231C8 #795ED8 #A28FE4 #CBC1F0

Accessibility & contrast

On white

4.77
#795ED8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#795ED8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795ED8
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795ED8#FFFFFF#000000##FFFFFF
##795ED81.004.774.414.77
#FFFFFF4.771.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1275DC
Deuteranopia (green-blind)
#1A70D5
Tritanopia (blue-blind)
#5D7992
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #795ed8;
/* rgb */ color: rgb(121, 94, 216);
/* oklch */ color: oklch(57.1% 0.179 289.7);
Tailwind
colors: {
  custom: {
    50: '#a68ce5',
    500: '#795ed8',
    950: '#000000',
  },
}
SCSS
$custom: #795ed8;
$custom-light: #a68ce5;
$custom-dark: #000000;
JSON
{
  "hex": "#795ed8",
  "rgb": {
    "r": 121,
    "g": 94,
    "b": 216
  },
  "hsl": {
    "h": 253.279,
    "s": 61,
    "l": 60.784
  },
  "oklch": {
    "l": 0.57095,
    "c": 0.17927,
    "h": 289.7
  },
  "luminance": 0.17028
}

Semantic roles & 50–950 ramp

primary
#795ED8
secondary
#D6E0B2
accent
#C91DA3
background
#FAF8FE
surface
#F4F0FC
border
#CECBD5
text
#100C16
muted
#7F7D84

Preview Lab

Preview with #795ED8

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

Preview Lab → · Contrast checker → · Palette generator →

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