#795EF6#795EF6

#795EF6 is a mid, highly saturated violet. Relative luminance 0.187; OKLCH L 59.3% C 0.217 H 285.9°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#795EF6
RGBrgb(121, 94, 246)
HSLhsl(251, 89%, 67%)
HSVhsv(251, 62%, 96%)
CMYKcmyk(50.8%, 61.8%, 0%, 3.5%)
CIE-LABlab(50.36, 48.69, -72.78)
CIE-LCHlch(50.36, 87.57, 303.78°)
OKLaboklab(59.26% 0.0593 -0.2086)
OKLCHoklch(59.26% 0.217 285.9)
XYZxyz(28.5175, 18.7227, 89.2821)
Luminance0.1872 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795EF6 #DBF65E
analogous
#5E8FF6 #795EF6 #C55EF6
triadic
#795EF6 #F6795E #5EF679
tetradic
#795EF6 #F65E8F #DBF65E #5EF6C5
square
#795EF6 #F65E8F #DBF65E #5EF6C5
split-complementary
#795EF6 #F6C55E #8FF65E
monochromatic
#2E0CCE #4924F3 #795EF6 #A998F9 #D9D2FC

Accessibility & contrast

On white

4.43
#795EF6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#795EF6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #795EF6
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795EF6#FFFFFF#000000##000000
##795EF61.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CFB
Deuteranopia (green-blind)
#0073F3
Tritanopia (blue-blind)
#4983A1
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #795ef6;
/* rgb */ color: rgb(121, 94, 246);
/* oklch */ color: oklch(59.3% 0.217 285.9);
Tailwind
colors: {
  custom: {
    50: '#a98dfa',
    500: '#795ef6',
    950: '#000000',
  },
}
SCSS
$custom: #795ef6;
$custom-light: #a98dfa;
$custom-dark: #000000;
JSON
{
  "hex": "#795ef6",
  "rgb": {
    "r": 121,
    "g": 94,
    "b": 246
  },
  "hsl": {
    "h": 250.658,
    "s": 89.412,
    "l": 66.667
  },
  "oklch": {
    "l": 0.59264,
    "c": 0.2169,
    "h": 285.9
  },
  "luminance": 0.18724
}

Semantic roles & 50–950 ramp

primary
#795EF6
secondary
#E8F0BF
accent
#E600BD
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #795EF6

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

Preview Lab → · Contrast checker → · Palette generator →

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