#795AF1#795AF1

#795AF1 is a mid, highly saturated violet. Relative luminance 0.177; OKLCH L 58.3% C 0.216 H 287.1°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#795AF1
RGBrgb(121, 90, 241)
HSLhsl(252, 84%, 65%)
HSVhsv(252, 63%, 95%)
CMYKcmyk(49.8%, 62.7%, 0%, 5.5%)
CIE-LABlab(49.16, 49.48, -71.93)
CIE-LCHlch(49.16, 87.31, 304.52°)
OKLaboklab(58.28% 0.0636 -0.2062)
OKLCHoklch(58.28% 0.216 287.1)
XYZxyz(27.4138, 17.7269, 85.1792)
Luminance0.1773 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795AF1 #D2F15A
analogous
#5A86F1 #795AF1 #C55AF1
triadic
#795AF1 #F1795A #5AF179
tetradic
#795AF1 #F15A86 #D2F15A #5AF1C5
square
#795AF1 #F15A86 #D2F15A #5AF1C5
split-complementary
#795AF1 #F1C55A #86F15A
monochromatic
#3410C0 #4B22EC #795AF1 #A792F6 #D5CBFB

Accessibility & contrast

On white

4.62
#795AF1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#795AF1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #795AF1
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795AF1#FFFFFF#000000##FFFFFF
##795AF11.004.624.554.62
#FFFFFF4.621.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0079F6
Deuteranopia (green-blind)
#0071EE
Tritanopia (blue-blind)
#4D7E9D
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #795af1;
/* rgb */ color: rgb(121, 90, 241);
/* oklch */ color: oklch(58.3% 0.216 287.1);
Tailwind
colors: {
  custom: {
    50: '#a98af7',
    500: '#795af1',
    950: '#000000',
  },
}
SCSS
$custom: #795af1;
$custom-light: #a98af7;
$custom-dark: #000000;
JSON
{
  "hex": "#795af1",
  "rgb": {
    "r": 121,
    "g": 90,
    "b": 241
  },
  "hsl": {
    "h": 252.318,
    "s": 84.358,
    "l": 64.902
  },
  "oklch": {
    "l": 0.58278,
    "c": 0.21574,
    "h": 287.1
  },
  "luminance": 0.17728
}

Semantic roles & 50–950 ramp

primary
#795AF1
secondary
#E3EDBA
accent
#E105B4
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #795AF1

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

Preview Lab → · Contrast checker → · Palette generator →

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