#795DB1#795DB1

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

Color values

HEX#795DB1
RGBrgb(121, 93, 177)
HSLhsl(260, 35%, 53%)
HSVhsv(260, 47%, 69%)
CMYKcmyk(31.6%, 47.5%, 0%, 30.6%)
CIE-LABlab(45.73, 30.00, -40.83)
CIE-LCHlch(45.73, 50.66, 306.31°)
OKLaboklab(54.43% 0.0593 -0.1148)
OKLCHoklch(54.43% 0.129 297.3)
XYZxyz(19.7334, 15.0677, 43.4552)
Luminance0.1507 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795DB1 #95B15D
analogous
#5D6BB1 #795DB1 #A35DB1
triadic
#795DB1 #B1795D #5DB179
tetradic
#795DB1 #B15D6B #95B15D #5DB1A3
square
#795DB1 #B15D6B #95B15D #5DB1A3
split-complementary
#795DB1 #B1A35D #6BB15D
monochromatic
#413064 #5C448D #795DB1 #9B86C5 #BDB0D9

Accessibility & contrast

On white

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

On black

4.01
#795DB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##795DB1#FFFFFF#000000##FFFFFF
##795DB11.005.234.015.23
#FFFFFF5.231.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#426DB4
Deuteranopia (green-blind)
#486BAF
Tritanopia (blue-blind)
#6D6D7E
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #795db1;
/* rgb */ color: rgb(121, 93, 177);
/* oklch */ color: oklch(54.4% 0.129 297.3);
Tailwind
colors: {
  custom: {
    50: '#a28bc9',
    500: '#795db1',
    950: '#000000',
  },
}
SCSS
$custom: #795db1;
$custom-light: #a28bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#795db1",
  "rgb": {
    "r": 121,
    "g": 93,
    "b": 177
  },
  "hsl": {
    "h": 260,
    "s": 35,
    "l": 52.941
  },
  "oklch": {
    "l": 0.54434,
    "c": 0.12922,
    "h": 297.3
  },
  "luminance": 0.15068
}

Semantic roles & 50–950 ramp

primary
#795DB1
secondary
#BBC7A3
accent
#CB5DA6
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#0F0C13
muted
#7F7D82

Preview Lab

Preview with #795DB1

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

Preview Lab → · Contrast checker → · Palette generator →

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