#795BE3#795BE3

#795BE3 is a mid, vivid violet. Relative luminance 0.171; OKLCH L 57.4% C 0.197 H 288.8°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#795BE3
RGBrgb(121, 91, 227)
HSLhsl(253, 71%, 62%)
HSVhsv(253, 60%, 89%)
CMYKcmyk(46.7%, 59.9%, 0%, 11%)
CIE-LABlab(48.38, 44.95, -65.33)
CIE-LCHlch(48.38, 79.30, 304.53°)
OKLaboklab(57.39% 0.0635 -0.1867)
OKLCHoklch(57.39% 0.197 288.8)
XYZxyz(25.4874, 17.0921, 74.6143)
Luminance0.1709 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795BE3 #C5E35B
analogous
#5B81E3 #795BE3 #BD5BE3
triadic
#795BE3 #E3795B #5BE379
tetradic
#795BE3 #E35B81 #C5E35B #5BE3BD
square
#795BE3 #E35B81 #C5E35B #5BE3BD
split-complementary
#795BE3 #E3BD5B #81E35B
monochromatic
#3B1DA7 #4E27DA #795BE3 #A48FEC #CEC4F5

Accessibility & contrast

On white

4.75
#795BE3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#795BE3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795BE3
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795BE3#FFFFFF#000000##FFFFFF
##795BE31.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076E7
Deuteranopia (green-blind)
#006FE0
Tritanopia (blue-blind)
#577A96
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #795be3;
/* rgb */ color: rgb(121, 91, 227);
/* oklch */ color: oklch(57.4% 0.197 288.8);
Tailwind
colors: {
  custom: {
    50: '#a78bed',
    500: '#795be3',
    950: '#000000',
  },
}
SCSS
$custom: #795be3;
$custom-light: #a78bed;
$custom-dark: #000000;
JSON
{
  "hex": "#795be3",
  "rgb": {
    "r": 121,
    "g": 91,
    "b": 227
  },
  "hsl": {
    "h": 253.235,
    "s": 70.833,
    "l": 62.353
  },
  "oklch": {
    "l": 0.5739,
    "c": 0.19724,
    "h": 288.8
  },
  "luminance": 0.17093
}

Semantic roles & 50–950 ramp

primary
#795BE3
secondary
#DBE6B4
accent
#D313A8
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100C16
muted
#7F7D84

Preview Lab

Preview with #795BE3

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

Preview Lab → · Contrast checker → · Palette generator →

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