#795BBA#795BBA

#795BBA is a mid, vivid violet. Relative luminance 0.151; OKLCH L 54.6% C 0.144 H 295.8°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#795BBA
RGBrgb(121, 91, 186)
HSLhsl(259, 41%, 54%)
HSVhsv(259, 51%, 73%)
CMYKcmyk(34.9%, 51.1%, 0%, 27.1%)
CIE-LABlab(45.76, 33.58, -46.03)
CIE-LCHlch(45.76, 56.98, 306.12°)
OKLaboklab(54.62% 0.0629 -0.13)
OKLCHoklch(54.62% 0.144 295.8)
XYZxyz(20.4869, 15.0920, 48.2785)
Luminance0.1509 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795BBA #9CBA5B
analogous
#5B6DBA #795BBA #A95BBA
triadic
#795BBA #BA795B #5BBA79
tetradic
#795BBA #BA5B6D #9CBA5B #5BBAA9
square
#795BBA #BA5B6D #9CBA5B #5BBAA9
split-complementary
#795BBA #BAA95B #6DBA5B
monochromatic
#422E6D #5C4098 #795BBA #9C86CC #BFB1DE

Accessibility & contrast

On white

5.23
#795BBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#795BBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795BBA
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795BBA#FFFFFF#000000##FFFFFF
##795BBA1.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#376DBD
Deuteranopia (green-blind)
#3E6BB8
Tritanopia (blue-blind)
#6A6E82
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #795bba;
/* rgb */ color: rgb(121, 91, 186);
/* oklch */ color: oklch(54.6% 0.144 295.8);
Tailwind
colors: {
  custom: {
    50: '#a38acf',
    500: '#795bba',
    950: '#000000',
  },
}
SCSS
$custom: #795bba;
$custom-light: #a38acf;
$custom-dark: #000000;
JSON
{
  "hex": "#795bba",
  "rgb": {
    "r": 121,
    "g": 91,
    "b": 186
  },
  "hsl": {
    "h": 258.947,
    "s": 40.773,
    "l": 54.314
  },
  "oklch": {
    "l": 0.54622,
    "c": 0.14445,
    "h": 295.8
  },
  "luminance": 0.15092
}

Semantic roles & 50–950 ramp

primary
#795BBA
secondary
#C0CDA4
accent
#D157AA
background
#FAF8FC
surface
#F4F0F9
border
#CECBD2
text
#0F0C14
muted
#7F7D82

Preview Lab

Preview with #795BBA

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

Preview Lab → · Contrast checker → · Palette generator →

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