#795AFE#795AFE

#795AFE is a mid, highly saturated violet. Relative luminance 0.185; OKLCH L 59.3% C 0.231 H 285.6°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#795AFE
RGBrgb(121, 90, 254)
HSLhsl(251, 99%, 67%)
HSVhsv(251, 65%, 100%)
CMYKcmyk(52.4%, 64.6%, 0%, 0.4%)
CIE-LABlab(50.13, 53.18, -77.60)
CIE-LCHlch(50.13, 94.08, 304.42°)
OKLaboklab(59.29% 0.0622 -0.2228)
OKLCHoklch(59.29% 0.231 285.6)
XYZxyz(29.4254, 18.5315, 95.7731)
Luminance0.1853 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795AFE #DFFE5A
analogous
#5A8DFE #795AFE #CB5AFE
triadic
#795AFE #FE795A #5AFE79
tetradic
#795AFE #FE5A8D #DFFE5A #5AFECB
square
#795AFE #FE5A8D #DFFE5A #5AFECB
split-complementary
#795AFE #FECB5A #8DFE5A
monochromatic
#2B01DC #481DFE #795AFE #AA97FE #DCD4FF

Accessibility & contrast

On white

4.46
#795AFE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#795AFE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #795AFE
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795AFE#FFFFFF#000000##000000
##795AFE1.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CFF
Deuteranopia (green-blind)
#0072FB
Tritanopia (blue-blind)
#4283A4
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #795afe;
/* rgb */ color: rgb(121, 90, 254);
/* oklch */ color: oklch(59.3% 0.231 285.6);
Tailwind
colors: {
  custom: {
    50: '#aa8aff',
    500: '#795afe',
    950: '#000000',
  },
}
SCSS
$custom: #795afe;
$custom-light: #aa8aff;
$custom-dark: #000000;
JSON
{
  "hex": "#795afe",
  "rgb": {
    "r": 121,
    "g": 90,
    "b": 254
  },
  "hsl": {
    "h": 251.341,
    "s": 98.795,
    "l": 67.451
  },
  "oklch": {
    "l": 0.59285,
    "c": 0.23136,
    "h": 285.6
  },
  "luminance": 0.18533
}

Semantic roles & 50–950 ramp

primary
#795AFE
secondary
#EAF4C0
accent
#E600BA
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C18
muted
#807D86

Preview Lab

Preview with #795AFE

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

Preview Lab → · Contrast checker → · Palette generator →

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