#795EB4#795EB4

#795EB4 is a mid, vivid violet. Relative luminance 0.154; OKLCH L 54.8% C 0.132 H 296.3°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#795EB4
RGBrgb(121, 94, 180)
HSLhsl(259, 36%, 54%)
HSVhsv(259, 48%, 71%)
CMYKcmyk(32.8%, 47.8%, 0%, 29.4%)
CIE-LABlab(46.13, 30.20, -41.94)
CIE-LCHlch(46.13, 51.68, 305.76°)
OKLaboklab(54.79% 0.0583 -0.1181)
OKLCHoklch(54.79% 0.132 296.3)
XYZxyz(20.1240, 15.3654, 45.0767)
Luminance0.1537 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795EB4 #99B45E
analogous
#5E6EB4 #795EB4 #A45EB4
triadic
#795EB4 #B4795E #5EB479
tetradic
#795EB4 #B45E6E #99B45E #5EB4A4
square
#795EB4 #B45E6E #99B45E #5EB4A4
split-complementary
#795EB4 #B4A45E #6EB45E
monochromatic
#423067 #5C4491 #795EB4 #9C88C7 #BEB1DB

Accessibility & contrast

On white

5.16
#795EB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#795EB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795EB4
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795EB4#FFFFFF#000000##FFFFFF
##795EB41.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#416EB7
Deuteranopia (green-blind)
#476CB2
Tritanopia (blue-blind)
#6C6E80
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #795eb4;
/* rgb */ color: rgb(121, 94, 180);
/* oklch */ color: oklch(54.8% 0.132 296.3);
Tailwind
colors: {
  custom: {
    50: '#a28ccb',
    500: '#795eb4',
    950: '#000000',
  },
}
SCSS
$custom: #795eb4;
$custom-light: #a28ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#795eb4",
  "rgb": {
    "r": 121,
    "g": 94,
    "b": 180
  },
  "hsl": {
    "h": 258.837,
    "s": 36.441,
    "l": 53.725
  },
  "oklch": {
    "l": 0.54789,
    "c": 0.13166,
    "h": 296.3
  },
  "luminance": 0.15366
}

Semantic roles & 50–950 ramp

primary
#795EB4
secondary
#BEC9A5
accent
#CC5BA9
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#0F0C13
muted
#7F7D82

Preview Lab

Preview with #795EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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