#795FCC#795FCC

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

Color values

HEX#795FCC
RGBrgb(121, 95, 204)
HSLhsl(254, 52%, 59%)
HSVhsv(254, 53%, 80%)
CMYKcmyk(40.7%, 53.4%, 0%, 20%)
CIE-LABlab(47.76, 36.17, -53.22)
CIE-LCHlch(47.76, 64.35, 304.20°)
OKLaboklab(56.46% 0.0589 -0.1511)
OKLCHoklch(56.46% 0.162 291.3)
XYZxyz(22.8735, 16.6083, 59.1156)
Luminance0.1661 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795FCC #B2CC5F
analogous
#5F7BCC #795FCC #AF5FCC
triadic
#795FCC #CC795F #5FCC79
tetradic
#795FCC #CC5F7B #B2CC5F #5FCCAF
square
#795FCC #CC5F7B #B2CC5F #5FCCAF
split-complementary
#795FCC #CCAF5F #7BCC5F
monochromatic
#402B86 #5739B4 #795FCC #A08DDB #C7BCEA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##795FCC#FFFFFF#000000##FFFFFF
##795FCC1.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)
#2D73D0
Deuteranopia (green-blind)
#316FCA
Tritanopia (blue-blind)
#62768C
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #795fcc;
/* rgb */ color: rgb(121, 95, 204);
/* oklch */ color: oklch(56.5% 0.162 291.3);
Tailwind
colors: {
  custom: {
    50: '#a48ddc',
    500: '#795fcc',
    950: '#000000',
  },
}
SCSS
$custom: #795fcc;
$custom-light: #a48ddc;
$custom-dark: #000000;
JSON
{
  "hex": "#795fcc",
  "rgb": {
    "r": 121,
    "g": 95,
    "b": 204
  },
  "hsl": {
    "h": 254.312,
    "s": 51.659,
    "l": 58.627
  },
  "oklch": {
    "l": 0.56458,
    "c": 0.16223,
    "h": 291.3
  },
  "luminance": 0.16609
}

Semantic roles & 50–950 ramp

primary
#795FCC
secondary
#CFD9AE
accent
#DB4DB9
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #795FCC

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

Preview Lab → · Contrast checker → · Palette generator →

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