#795AF6#795AF6

#795AF6 is a mid, highly saturated violet. Relative luminance 0.180; OKLCH L 58.7% C 0.222 H 286.5°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#795AF6
RGBrgb(121, 90, 246)
HSLhsl(252, 90%, 66%)
HSVhsv(252, 63%, 96%)
CMYKcmyk(50.8%, 63.4%, 0%, 3.5%)
CIE-LABlab(49.53, 50.90, -74.13)
CIE-LCHlch(49.53, 89.92, 304.48°)
OKLaboklab(58.66% 0.0631 -0.2126)
OKLCHoklch(58.66% 0.222 286.5)
XYZxyz(28.1709, 18.0297, 89.1666)
Luminance0.1803 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795AF6 #D7F65A
analogous
#5A89F6 #795AF6 #C75AF6
triadic
#795AF6 #F6795A #5AF679
tetradic
#795AF6 #F65A89 #D7F65A #5AF6C7
square
#795AF6 #F65A89 #D7F65A #5AF6C7
split-complementary
#795AF6 #F6C75A #89F65A
monochromatic
#310BCB #4A20F3 #795AF6 #A894F9 #D7CEFC

Accessibility & contrast

On white

4.56
#795AF6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#795AF6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #795AF6
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795AF6#FFFFFF#000000##000000
##795AF61.004.564.614.61
#FFFFFF4.561.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AFB
Deuteranopia (green-blind)
#0071F3
Tritanopia (blue-blind)
#4980A0
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #795af6;
/* rgb */ color: rgb(121, 90, 246);
/* oklch */ color: oklch(58.7% 0.222 286.5);
Tailwind
colors: {
  custom: {
    50: '#a98afa',
    500: '#795af6',
    950: '#000000',
  },
}
SCSS
$custom: #795af6;
$custom-light: #a98afa;
$custom-dark: #000000;
JSON
{
  "hex": "#795af6",
  "rgb": {
    "r": 121,
    "g": 90,
    "b": 246
  },
  "hsl": {
    "h": 251.923,
    "s": 89.655,
    "l": 65.882
  },
  "oklch": {
    "l": 0.58661,
    "c": 0.22178,
    "h": 286.5
  },
  "luminance": 0.18031
}

Semantic roles & 50–950 ramp

primary
#795AF6
secondary
#E5F0BC
accent
#E600B8
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #795AF6

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

Preview Lab → · Contrast checker → · Palette generator →

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