#795DB2#795DB2

#795DB2 is a mid, vivid violet. Relative luminance 0.151; OKLCH L 54.5% C 0.131 H 297.1°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#795DB2
RGBrgb(121, 93, 178)
HSLhsl(260, 36%, 53%)
HSVhsv(260, 48%, 70%)
CMYKcmyk(32%, 47.8%, 0%, 30.2%)
CIE-LABlab(45.78, 30.27, -41.32)
CIE-LCHlch(45.78, 51.22, 306.22°)
OKLaboklab(54.49% 0.0594 -0.1163)
OKLCHoklch(54.49% 0.131 297.1)
XYZxyz(19.8334, 15.1078, 43.9820)
Luminance0.1511 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795DB2 #96B25D
analogous
#5D6BB2 #795DB2 #A45DB2
triadic
#795DB2 #B2795D #5DB279
tetradic
#795DB2 #B25D6B #96B25D #5DB2A4
square
#795DB2 #B25D6B #96B25D #5DB2A4
split-complementary
#795DB2 #B2A45D #6BB25D
monochromatic
#413065 #5C448E #795DB2 #9B86C6 #BEB0D9

Accessibility & contrast

On white

5.22
#795DB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #795DB2
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795DB2#FFFFFF#000000##FFFFFF
##795DB21.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#416DB5
Deuteranopia (green-blind)
#476BB0
Tritanopia (blue-blind)
#6D6D7F
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #795db2;
/* rgb */ color: rgb(121, 93, 178);
/* oklch */ color: oklch(54.5% 0.131 297.1);
Tailwind
colors: {
  custom: {
    50: '#a28bc9',
    500: '#795db2',
    950: '#000000',
  },
}
SCSS
$custom: #795db2;
$custom-light: #a28bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#795db2",
  "rgb": {
    "r": 121,
    "g": 93,
    "b": 178
  },
  "hsl": {
    "h": 259.765,
    "s": 35.565,
    "l": 53.137
  },
  "oklch": {
    "l": 0.54492,
    "c": 0.13057,
    "h": 297.1
  },
  "luminance": 0.15108
}

Semantic roles & 50–950 ramp

primary
#795DB2
secondary
#BCC8A3
accent
#CC5CA7
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#0F0C13
muted
#7F7D82

Preview Lab

Preview with #795DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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