#795ECF#795ECF

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

Color values

HEX#795ECF
RGBrgb(121, 94, 207)
HSLhsl(254, 54%, 59%)
HSVhsv(254, 55%, 81%)
CMYKcmyk(41.5%, 54.6%, 0%, 18.8%)
CIE-LABlab(47.72, 37.59, -55.01)
CIE-LCHlch(47.72, 66.63, 304.34°)
OKLaboklab(56.49% 0.0603 -0.1564)
OKLCHoklch(56.49% 0.168 291.1)
XYZxyz(23.1473, 16.5746, 60.9990)
Luminance0.1658 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795ECF #B4CF5E
analogous
#5E7CCF #795ECF #B25ECF
triadic
#795ECF #CF795E #5ECF79
tetradic
#795ECF #CF5E7C #B4CF5E #5ECFB2
square
#795ECF #CF5E7C #B4CF5E #5ECFB2
split-complementary
#795ECF #CFB25E #7CCF5E
monochromatic
#40298A #5637B9 #795ECF #A08DDD #C7BCEB

Accessibility & contrast

On white

4.87
#795ECF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#795ECF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795ECF
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795ECF#FFFFFF#000000##FFFFFF
##795ECF1.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2673D3
Deuteranopia (green-blind)
#2B6FCC
Tritanopia (blue-blind)
#61768D
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #795ecf;
/* rgb */ color: rgb(121, 94, 207);
/* oklch */ color: oklch(56.5% 0.168 291.1);
Tailwind
colors: {
  custom: {
    50: '#a58cde',
    500: '#795ecf',
    950: '#000000',
  },
}
SCSS
$custom: #795ecf;
$custom-light: #a58cde;
$custom-dark: #000000;
JSON
{
  "hex": "#795ecf",
  "rgb": {
    "r": 121,
    "g": 94,
    "b": 207
  },
  "hsl": {
    "h": 254.336,
    "s": 54.067,
    "l": 59.02
  },
  "oklch": {
    "l": 0.56486,
    "c": 0.16761,
    "h": 291.1
  },
  "luminance": 0.16575
}

Semantic roles & 50–950 ramp

primary
#795ECF
secondary
#D0DBAE
accent
#DD4ABA
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #795ECF

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

Preview Lab → · Contrast checker → · Palette generator →

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