#795BB3#795BB3

#795BB3 is a mid, vivid violet. Relative luminance 0.148; OKLCH L 54.2% C 0.135 H 297.4°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#795BB3
RGBrgb(121, 91, 179)
HSLhsl(260, 37%, 53%)
HSVhsv(260, 49%, 70%)
CMYKcmyk(32.4%, 49.2%, 0%, 29.8%)
CIE-LABlab(45.36, 31.72, -42.58)
CIE-LCHlch(45.36, 53.09, 306.68°)
OKLaboklab(54.2% 0.0623 -0.1199)
OKLCHoklch(54.2% 0.135 297.4)
XYZxyz(19.7609, 14.8016, 44.4550)
Luminance0.1480 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795BB3 #95B35B
analogous
#5B69B3 #795BB3 #A55BB3
triadic
#795BB3 #B3795B #5BB379
tetradic
#795BB3 #B35B69 #95B35B #5BB3A5
square
#795BB3 #B35B69 #95B35B #5BB3A5
split-complementary
#795BB3 #B3A55B #69B35B
monochromatic
#412F65 #5C428F #795BB3 #9B85C6 #BDAFDA

Accessibility & contrast

On white

5.30
#795BB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#795BB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795BB3
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795BB3#FFFFFF#000000##FFFFFF
##795BB31.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D6CB6
Deuteranopia (green-blind)
#446AB1
Tritanopia (blue-blind)
#6D6C7E
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #795bb3;
/* rgb */ color: rgb(121, 91, 179);
/* oklch */ color: oklch(54.2% 0.135 297.4);
Tailwind
colors: {
  custom: {
    50: '#a28aca',
    500: '#795bb3',
    950: '#000000',
  },
}
SCSS
$custom: #795bb3;
$custom-light: #a28aca;
$custom-dark: #000000;
JSON
{
  "hex": "#795bb3",
  "rgb": {
    "r": 121,
    "g": 91,
    "b": 179
  },
  "hsl": {
    "h": 260.455,
    "s": 36.667,
    "l": 52.941
  },
  "oklch": {
    "l": 0.54196,
    "c": 0.13513,
    "h": 297.4
  },
  "luminance": 0.14802
}

Semantic roles & 50–950 ramp

primary
#795BB3
secondary
#BBC8A2
accent
#CD5BA6
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#0F0C13
muted
#7F7D82

Preview Lab

Preview with #795BB3

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

Preview Lab → · Contrast checker → · Palette generator →

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