#795BF1#795BF1

#795BF1 is a mid, highly saturated violet. Relative luminance 0.179; OKLCH L 58.4% C 0.214 H 287.0°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#795BF1
RGBrgb(121, 91, 241)
HSLhsl(252, 84%, 65%)
HSVhsv(252, 62%, 95%)
CMYKcmyk(49.8%, 62.2%, 0%, 5.5%)
CIE-LABlab(49.37, 48.93, -71.60)
CIE-LCHlch(49.37, 86.72, 304.35°)
OKLaboklab(58.43% 0.0626 -0.2052)
OKLCHoklch(58.43% 0.215 287)
XYZxyz(27.4988, 17.8967, 85.2075)
Luminance0.1790 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795BF1 #D3F15B
analogous
#5B88F1 #795BF1 #C45BF1
triadic
#795BF1 #F1795B #5BF179
tetradic
#795BF1 #F15B88 #D3F15B #5BF1C4
square
#795BF1 #F15B88 #D3F15B #5BF1C4
split-complementary
#795BF1 #F1C45B #88F15B
monochromatic
#3410C1 #4B23EC #795BF1 #A793F6 #D5CCFB

Accessibility & contrast

On white

4.59
#795BF1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#795BF1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #795BF1
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795BF1#FFFFFF#000000##FFFFFF
##795BF11.004.594.584.59
#FFFFFF4.591.0021.001.00
#0000004.5821.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #795bf1;
/* rgb */ color: rgb(121, 91, 241);
/* oklch */ color: oklch(58.4% 0.214 287.0);
Tailwind
colors: {
  custom: {
    50: '#a98bf7',
    500: '#795bf1',
    950: '#000000',
  },
}
SCSS
$custom: #795bf1;
$custom-light: #a98bf7;
$custom-dark: #000000;
JSON
{
  "hex": "#795bf1",
  "rgb": {
    "r": 121,
    "g": 91,
    "b": 241
  },
  "hsl": {
    "h": 252,
    "s": 84.27,
    "l": 65.098
  },
  "oklch": {
    "l": 0.58429,
    "c": 0.2145,
    "h": 287
  },
  "luminance": 0.17898
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #795BF1

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

Preview Lab → · Contrast checker → · Palette generator →

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