#795BB5#795BB5

#795BB5 is a mid, vivid violet. Relative luminance 0.149; OKLCH L 54.3% C 0.138 H 297.0°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#795BB5
RGBrgb(121, 91, 181)
HSLhsl(260, 38%, 53%)
HSVhsv(260, 50%, 71%)
CMYKcmyk(33.1%, 49.7%, 0%, 29%)
CIE-LABlab(45.47, 32.25, -43.57)
CIE-LCHlch(45.47, 54.20, 306.51°)
OKLaboklab(54.32% 0.0625 -0.1228)
OKLCHoklch(54.32% 0.138 297)
XYZxyz(19.9647, 14.8831, 45.5280)
Luminance0.1488 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795BB5 #97B55B
analogous
#5B6AB5 #795BB5 #A65BB5
triadic
#795BB5 #B5795B #5BB579
tetradic
#795BB5 #B55B6A #97B55B #5BB5A6
square
#795BB5 #B55B6A #97B55B #5BB5A6
split-complementary
#795BB5 #B5A65B #6AB55B
monochromatic
#412F67 #5C4291 #795BB5 #9B85C8 #BEAFDB

Accessibility & contrast

On white

5.28
#795BB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#795BB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795BB5
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795BB5#FFFFFF#000000##FFFFFF
##795BB51.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C6CB8
Deuteranopia (green-blind)
#426BB3
Tritanopia (blue-blind)
#6C6C7F
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #795bb5;
/* rgb */ color: rgb(121, 91, 181);
/* oklch */ color: oklch(54.3% 0.138 297.0);
Tailwind
colors: {
  custom: {
    50: '#a28acc',
    500: '#795bb5',
    950: '#000000',
  },
}
SCSS
$custom: #795bb5;
$custom-light: #a28acc;
$custom-dark: #000000;
JSON
{
  "hex": "#795bb5",
  "rgb": {
    "r": 121,
    "g": 91,
    "b": 181
  },
  "hsl": {
    "h": 260,
    "s": 37.815,
    "l": 53.333
  },
  "oklch": {
    "l": 0.54316,
    "c": 0.1378,
    "h": 297
  },
  "luminance": 0.14883
}

Semantic roles & 50–950 ramp

primary
#795BB5
secondary
#BCC9A3
accent
#CE5AA7
background
#FAF8FC
surface
#F4F0F9
border
#CECBD2
text
#0F0C13
muted
#7F7D82

Preview Lab

Preview with #795BB5

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

Preview Lab → · Contrast checker → · Palette generator →

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