#795BB2#795BB2

#795BB2 is a mid, vivid violet. Relative luminance 0.148; OKLCH L 54.1% C 0.134 H 297.7°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#795BB2
RGBrgb(121, 91, 178)
HSLhsl(261, 36%, 53%)
HSVhsv(261, 49%, 70%)
CMYKcmyk(32%, 48.9%, 0%, 30.2%)
CIE-LABlab(45.31, 31.45, -42.08)
CIE-LCHlch(45.31, 52.54, 306.78°)
OKLaboklab(54.14% 0.0621 -0.1185)
OKLCHoklch(54.14% 0.134 297.7)
XYZxyz(19.6602, 14.7613, 43.9243)
Luminance0.1476 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795BB2 #94B25B
analogous
#5B68B2 #795BB2 #A55BB2
triadic
#795BB2 #B2795B #5BB279
tetradic
#795BB2 #B25B68 #94B25B #5BB2A5
square
#795BB2 #B25B68 #94B25B #5BB2A5
split-complementary
#795BB2 #B2A55B #68B25B
monochromatic
#412F64 #5C428D #795BB2 #9B85C6 #BDAED9

Accessibility & contrast

On white

5.31
#795BB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#795BB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795BB2
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795BB2#FFFFFF#000000##FFFFFF
##795BB21.005.313.955.31
#FFFFFF5.311.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E6BB5
Deuteranopia (green-blind)
#456AB0
Tritanopia (blue-blind)
#6D6B7E
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #795bb2;
/* rgb */ color: rgb(121, 91, 178);
/* oklch */ color: oklch(54.1% 0.134 297.7);
Tailwind
colors: {
  custom: {
    50: '#a28ac9',
    500: '#795bb2',
    950: '#000000',
  },
}
SCSS
$custom: #795bb2;
$custom-light: #a28ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#795bb2",
  "rgb": {
    "r": 121,
    "g": 91,
    "b": 178
  },
  "hsl": {
    "h": 260.69,
    "s": 36.1,
    "l": 52.745
  },
  "oklch": {
    "l": 0.54136,
    "c": 0.13379,
    "h": 297.7
  },
  "luminance": 0.14761
}

Semantic roles & 50–950 ramp

primary
#795BB2
secondary
#BAC7A2
accent
#CC5CA5
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#0F0C13
muted
#7F7D82

Preview Lab

Preview with #795BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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