#795DD1#795DD1

#795DD1 is a mid, vivid violet. Relative luminance 0.165; OKLCH L 56.5% C 0.172 H 291.0°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#795DD1
RGBrgb(121, 93, 209)
HSLhsl(254, 56%, 59%)
HSVhsv(254, 56%, 82%)
CMYKcmyk(42.1%, 55.5%, 0%, 18%)
CIE-LABlab(47.62, 38.73, -56.32)
CIE-LCHlch(47.62, 68.35, 304.52°)
OKLaboklab(56.45% 0.0615 -0.1602)
OKLCHoklch(56.45% 0.172 291)
XYZxyz(23.3050, 16.4964, 62.2655)
Luminance0.1650 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795DD1 #B5D15D
analogous
#5D7BD1 #795DD1 #B35DD1
triadic
#795DD1 #D1795D #5DD179
tetradic
#795DD1 #D15D7B #B5D15D #5DD1B3
square
#795DD1 #D15D7B #B5D15D #5DD1B3
split-complementary
#795DD1 #D1B35D #7BD15D
monochromatic
#40288C #5635BC #795DD1 #A08DDF #C8BCEC

Accessibility & contrast

On white

4.88
#795DD1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#795DD1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795DD1
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795DD1#FFFFFF#000000##FFFFFF
##795DD11.004.884.304.88
#FFFFFF4.881.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F73D5
Deuteranopia (green-blind)
#266ECE
Tritanopia (blue-blind)
#60768E
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #795dd1;
/* rgb */ color: rgb(121, 93, 209);
/* oklch */ color: oklch(56.5% 0.172 291.0);
Tailwind
colors: {
  custom: {
    50: '#a58ce0',
    500: '#795dd1',
    950: '#000000',
  },
}
SCSS
$custom: #795dd1;
$custom-light: #a58ce0;
$custom-dark: #000000;
JSON
{
  "hex": "#795dd1",
  "rgb": {
    "r": 121,
    "g": 93,
    "b": 209
  },
  "hsl": {
    "h": 254.483,
    "s": 55.769,
    "l": 59.216
  },
  "oklch": {
    "l": 0.56452,
    "c": 0.17164,
    "h": 291
  },
  "luminance": 0.16497
}

Semantic roles & 50–950 ramp

primary
#795DD1
secondary
#D1DCAE
accent
#DF49BB
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #795DD1

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

Preview Lab → · Contrast checker → · Palette generator →

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