#795FB3#795FB3

#795FB3 is a mid, vivid violet. Relative luminance 0.155; OKLCH L 54.9% C 0.129 H 296.2°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#795FB3
RGBrgb(121, 95, 179)
HSLhsl(259, 36%, 54%)
HSVhsv(259, 47%, 70%)
CMYKcmyk(32.4%, 46.9%, 0%, 29.8%)
CIE-LABlab(46.32, 29.34, -41.06)
CIE-LCHlch(46.32, 50.47, 305.55°)
OKLaboklab(54.91% 0.0568 -0.1155)
OKLCHoklch(54.91% 0.129 296.2)
XYZxyz(20.1120, 15.5038, 44.5720)
Luminance0.1550 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795FB3 #99B35F
analogous
#5F6FB3 #795FB3 #A35FB3
triadic
#795FB3 #B3795F #5FB379
tetradic
#795FB3 #B35F6F #99B35F #5FB3A3
square
#795FB3 #B35F6F #99B35F #5FB3A3
split-complementary
#795FB3 #B3A35F #6FB35F
monochromatic
#423167 #5C4590 #795FB3 #9C88C7 #BEB2DA

Accessibility & contrast

On white

5.12
#795FB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#795FB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795FB3
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795FB3#FFFFFF#000000##FFFFFF
##795FB31.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#446EB6
Deuteranopia (green-blind)
#496DB1
Tritanopia (blue-blind)
#6C6F80
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #795fb3;
/* rgb */ color: rgb(121, 95, 179);
/* oklch */ color: oklch(54.9% 0.129 296.2);
Tailwind
colors: {
  custom: {
    50: '#a28dca',
    500: '#795fb3',
    950: '#000000',
  },
}
SCSS
$custom: #795fb3;
$custom-light: #a28dca;
$custom-dark: #000000;
JSON
{
  "hex": "#795fb3",
  "rgb": {
    "r": 121,
    "g": 95,
    "b": 179
  },
  "hsl": {
    "h": 258.571,
    "s": 35.593,
    "l": 53.725
  },
  "oklch": {
    "l": 0.54911,
    "c": 0.12869,
    "h": 296.2
  },
  "luminance": 0.15504
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #795FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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