#795BBB#795BBB

#795BBB is a mid, vivid violet. Relative luminance 0.151; OKLCH L 54.7% C 0.146 H 295.6°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#795BBB
RGBrgb(121, 91, 187)
HSLhsl(259, 41%, 55%)
HSVhsv(259, 51%, 73%)
CMYKcmyk(35.3%, 51.3%, 0%, 26.7%)
CIE-LABlab(45.82, 33.85, -46.52)
CIE-LCHlch(45.82, 57.53, 306.05°)
OKLaboklab(54.68% 0.063 -0.1315)
OKLCHoklch(54.68% 0.146 295.6)
XYZxyz(20.5936, 15.1346, 48.8404)
Luminance0.1514 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795BBB #9DBB5B
analogous
#5B6DBB #795BBB #A95BBB
triadic
#795BBB #BB795B #5BBB79
tetradic
#795BBB #BB5B6D #9DBB5B #5BBBA9
square
#795BBB #BB5B6D #9DBB5B #5BBBA9
split-complementary
#795BBB #BBA95B #6DBB5B
monochromatic
#422E6E #5C4099 #795BBB #9C86CD #C0B2DF

Accessibility & contrast

On white

5.21
#795BBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#795BBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795BBB
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795BBB#FFFFFF#000000##FFFFFF
##795BBB1.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#366DBE
Deuteranopia (green-blind)
#3D6BB9
Tritanopia (blue-blind)
#6A6E82
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #795bbb;
/* rgb */ color: rgb(121, 91, 187);
/* oklch */ color: oklch(54.7% 0.146 295.6);
Tailwind
colors: {
  custom: {
    50: '#a38ad0',
    500: '#795bbb',
    950: '#000000',
  },
}
SCSS
$custom: #795bbb;
$custom-light: #a38ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#795bbb",
  "rgb": {
    "r": 121,
    "g": 91,
    "b": 187
  },
  "hsl": {
    "h": 258.75,
    "s": 41.379,
    "l": 54.51
  },
  "oklch": {
    "l": 0.54684,
    "c": 0.14577,
    "h": 295.6
  },
  "luminance": 0.15135
}

Semantic roles & 50–950 ramp

primary
#795BBB
secondary
#C1CDA5
accent
#D157AB
background
#FAF8FC
surface
#F4F0F9
border
#CECBD2
text
#0F0C14
muted
#7F7D82

Preview Lab

Preview with #795BBB

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

Preview Lab → · Contrast checker → · Palette generator →

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