#795FD2#795FD2

#795FD2 is a mid, vivid violet. Relative luminance 0.169; OKLCH L 56.9% C 0.170 H 290.4°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#795FD2
RGBrgb(121, 95, 210)
HSLhsl(254, 56%, 60%)
HSVhsv(254, 55%, 82%)
CMYKcmyk(42.4%, 54.8%, 0%, 17.6%)
CIE-LABlab(48.14, 37.85, -56.06)
CIE-LCHlch(48.14, 67.64, 304.02°)
OKLaboklab(56.86% 0.0592 -0.1595)
OKLCHoklch(56.86% 0.17 290.4)
XYZxyz(23.6070, 16.9017, 62.9788)
Luminance0.1690 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795FD2 #B8D25F
analogous
#5F7FD2 #795FD2 #B25FD2
triadic
#795FD2 #D2795F #5FD279
tetradic
#795FD2 #D25F7F #B8D25F #5FD2B2
square
#795FD2 #D25F7F #B8D25F #5FD2B2
split-complementary
#795FD2 #D2B25F #7FD25F
monochromatic
#3F288F #5436BE #795FD2 #A18FDF #C9BFED

Accessibility & contrast

On white

4.79
#795FD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#795FD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795FD2
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795FD2#FFFFFF#000000##FFFFFF
##795FD21.004.794.384.79
#FFFFFF4.791.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2474D6
Deuteranopia (green-blind)
#2970CF
Tritanopia (blue-blind)
#60788F
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #795fd2;
/* rgb */ color: rgb(121, 95, 210);
/* oklch */ color: oklch(56.9% 0.170 290.4);
Tailwind
colors: {
  custom: {
    50: '#a58de0',
    500: '#795fd2',
    950: '#000000',
  },
}
SCSS
$custom: #795fd2;
$custom-light: #a58de0;
$custom-dark: #000000;
JSON
{
  "hex": "#795fd2",
  "rgb": {
    "r": 121,
    "g": 95,
    "b": 210
  },
  "hsl": {
    "h": 253.565,
    "s": 56.098,
    "l": 59.804
  },
  "oklch": {
    "l": 0.56855,
    "c": 0.17009,
    "h": 290.4
  },
  "luminance": 0.16903
}

Semantic roles & 50–950 ramp

primary
#795FD2
secondary
#D3DDB0
accent
#DF48BD
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #795FD2

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

Preview Lab → · Contrast checker → · Palette generator →

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