#795DD3#795DD3

#795DD3 is a mid, vivid violet. Relative luminance 0.166; OKLCH L 56.6% C 0.174 H 290.7°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#795DD3
RGBrgb(121, 93, 211)
HSLhsl(254, 57%, 60%)
HSVhsv(254, 56%, 83%)
CMYKcmyk(42.7%, 55.9%, 0%, 17.3%)
CIE-LABlab(47.75, 39.29, -57.26)
CIE-LCHlch(47.75, 69.44, 304.46°)
OKLaboklab(56.59% 0.0615 -0.163)
OKLCHoklch(56.59% 0.174 290.7)
XYZxyz(23.5541, 16.5960, 63.5777)
Luminance0.1660 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795DD3 #B7D35D
analogous
#5D7CD3 #795DD3 #B45DD3
triadic
#795DD3 #D3795D #5DD379
tetradic
#795DD3 #D35D7C #B7D35D #5DD3B4
square
#795DD3 #D35D7C #B7D35D #5DD3B4
split-complementary
#795DD3 #D3B45D #7CD35D
monochromatic
#3F278F #5534BF #795DD3 #A18DE0 #C9BDED

Accessibility & contrast

On white

4.86
#795DD3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#795DD3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795DD3
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795DD3#FFFFFF#000000##FFFFFF
##795DD31.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B73D7
Deuteranopia (green-blind)
#226FD0
Tritanopia (blue-blind)
#5F778F
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #795dd3;
/* rgb */ color: rgb(121, 93, 211);
/* oklch */ color: oklch(56.6% 0.174 290.7);
Tailwind
colors: {
  custom: {
    50: '#a58ce1',
    500: '#795dd3',
    950: '#000000',
  },
}
SCSS
$custom: #795dd3;
$custom-light: #a58ce1;
$custom-dark: #000000;
JSON
{
  "hex": "#795dd3",
  "rgb": {
    "r": 121,
    "g": 93,
    "b": 211
  },
  "hsl": {
    "h": 254.237,
    "s": 57.282,
    "l": 59.608
  },
  "oklch": {
    "l": 0.56588,
    "c": 0.17423,
    "h": 290.7
  },
  "luminance": 0.16597
}

Semantic roles & 50–950 ramp

primary
#795DD3
secondary
#D2DDAF
accent
#E147BC
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #795DD3

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

Preview Lab → · Contrast checker → · Palette generator →

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