#795FDF#795FDF

#795FDF is a mid, vivid violet. Relative luminance 0.176; OKLCH L 57.7% C 0.187 H 288.5°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#795FDF
RGBrgb(121, 95, 223)
HSLhsl(252, 67%, 62%)
HSVhsv(252, 57%, 87%)
CMYKcmyk(45.7%, 57.4%, 0%, 12.5%)
CIE-LABlab(48.98, 41.53, -62.10)
CIE-LCHlch(48.98, 74.70, 303.77°)
OKLaboklab(57.75% 0.0592 -0.1772)
OKLCHoklch(57.75% 0.187 288.5)
XYZxyz(25.2928, 17.5761, 71.8576)
Luminance0.1758 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795FDF #C5DF5F
analogous
#5F85DF #795FDF #B95FDF
triadic
#795FDF #DF795F #5FDF79
tetradic
#795FDF #DF5F85 #C5DF5F #5FDFB9
square
#795FDF #DF5F85 #C5DF5F #5FDFB9
split-complementary
#795FDF #DFB95F #85DF5F
monochromatic
#3B21A3 #4E2CD5 #795FDF #A492E9 #CEC5F3

Accessibility & contrast

On white

4.65
#795FDF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#795FDF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #795FDF
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795FDF#FFFFFF#000000##FFFFFF
##795FDF1.004.654.524.65
#FFFFFF4.651.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077E3
Deuteranopia (green-blind)
#0271DC
Tritanopia (blue-blind)
#597C96
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #795fdf;
/* rgb */ color: rgb(121, 95, 223);
/* oklch */ color: oklch(57.7% 0.187 288.5);
Tailwind
colors: {
  custom: {
    50: '#a68dea',
    500: '#795fdf',
    950: '#000000',
  },
}
SCSS
$custom: #795fdf;
$custom-light: #a68dea;
$custom-dark: #000000;
JSON
{
  "hex": "#795fdf",
  "rgb": {
    "r": 121,
    "g": 95,
    "b": 223
  },
  "hsl": {
    "h": 252.188,
    "s": 66.667,
    "l": 62.353
  },
  "oklch": {
    "l": 0.57745,
    "c": 0.18687,
    "h": 288.5
  },
  "luminance": 0.17577
}

Semantic roles & 50–950 ramp

primary
#795FDF
secondary
#DBE4B6
accent
#CF17A9
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100C16
muted
#7F7D84

Preview Lab

Preview with #795FDF

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

Preview Lab → · Contrast checker → · Palette generator →

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