#795BDB#795BDB

#795BDB is a mid, vivid violet. Relative luminance 0.167; OKLCH L 56.8% C 0.187 H 289.9°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#795BDB
RGBrgb(121, 91, 219)
HSLhsl(254, 64%, 61%)
HSVhsv(254, 58%, 86%)
CMYKcmyk(44.7%, 58.4%, 0%, 14.1%)
CIE-LABlab(47.83, 42.69, -61.68)
CIE-LCHlch(47.83, 75.01, 304.68°)
OKLaboklab(56.82% 0.0638 -0.176)
OKLCHoklch(56.82% 0.187 289.9)
XYZxyz(24.4088, 16.6607, 68.9339)
Luminance0.1666 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795BDB #BDDB5B
analogous
#5B7DDB #795BDB #B95BDB
triadic
#795BDB #DB795B #5BDB79
tetradic
#795BDB #DB5B7D #BDDB5B #5BDBB9
square
#795BDB #DB5B7D #BDDB5B #5BDBB9
split-complementary
#795BDB #DBB95B #7DDB5B
monochromatic
#3E229A #522DCC #795BDB #A28DE6 #CBBFF1

Accessibility & contrast

On white

4.85
#795BDB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#795BDB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795BDB
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795BDB#FFFFFF#000000##FFFFFF
##795BDB1.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074DF
Deuteranopia (green-blind)
#006FD8
Tritanopia (blue-blind)
#5B7892
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #795bdb;
/* rgb */ color: rgb(121, 91, 219);
/* oklch */ color: oklch(56.8% 0.187 289.9);
Tailwind
colors: {
  custom: {
    50: '#a68ae7',
    500: '#795bdb',
    950: '#000000',
  },
}
SCSS
$custom: #795bdb;
$custom-light: #a68ae7;
$custom-dark: #000000;
JSON
{
  "hex": "#795bdb",
  "rgb": {
    "r": 121,
    "g": 91,
    "b": 219
  },
  "hsl": {
    "h": 254.063,
    "s": 64,
    "l": 60.784
  },
  "oklch": {
    "l": 0.56816,
    "c": 0.18721,
    "h": 289.9
  },
  "luminance": 0.16662
}

Semantic roles & 50–950 ramp

primary
#795BDB
secondary
#D6E1B1
accent
#CC1AA2
background
#FAF8FE
surface
#F4F0FC
border
#CECBD5
text
#100C16
muted
#7F7D84

Preview Lab

Preview with #795BDB

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

Preview Lab → · Contrast checker → · Palette generator →

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