#795CD8#795CD8

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

Color values

HEX#795CD8
RGBrgb(121, 92, 216)
HSLhsl(254, 61%, 60%)
HSVhsv(254, 57%, 85%)
CMYKcmyk(44%, 57.4%, 0%, 15.3%)
CIE-LABlab(47.85, 41.27, -59.94)
CIE-LCHlch(47.85, 72.78, 304.55°)
OKLaboklab(56.77% 0.0627 -0.1709)
OKLCHoklch(56.77% 0.182 290.1)
XYZxyz(24.1035, 16.6763, 66.9013)
Luminance0.1668 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795CD8 #BBD85C
analogous
#5C7DD8 #795CD8 #B75CD8
triadic
#795CD8 #D8795C #5CD879
tetradic
#795CD8 #D85C7D #BBD85C #5CD8B7
square
#795CD8 #D85C7D #BBD85C #5CD8B7
split-complementary
#795CD8 #D8B75C #7DD85C
monochromatic
#3E2496 #5330C7 #795CD8 #A28DE4 #CABFF0

Accessibility & contrast

On white

4.84
#795CD8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#795CD8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795CD8
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795CD8#FFFFFF#000000##FFFFFF
##795CD81.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0474DC
Deuteranopia (green-blind)
#116FD5
Tritanopia (blue-blind)
#5D7791
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #795cd8;
/* rgb */ color: rgb(121, 92, 216);
/* oklch */ color: oklch(56.8% 0.182 290.1);
Tailwind
colors: {
  custom: {
    50: '#a68be5',
    500: '#795cd8',
    950: '#000000',
  },
}
SCSS
$custom: #795cd8;
$custom-light: #a68be5;
$custom-dark: #000000;
JSON
{
  "hex": "#795cd8",
  "rgb": {
    "r": 121,
    "g": 92,
    "b": 216
  },
  "hsl": {
    "h": 254.032,
    "s": 61.386,
    "l": 60.392
  },
  "oklch": {
    "l": 0.56767,
    "c": 0.18204,
    "h": 290.1
  },
  "luminance": 0.16677
}

Semantic roles & 50–950 ramp

primary
#795CD8
secondary
#D5E0B0
accent
#C91CA1
background
#FAF8FE
surface
#F4F0FC
border
#CECBD5
text
#100C16
muted
#7F7D84

Preview Lab

Preview with #795CD8

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

Preview Lab → · Contrast checker → · Palette generator →

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