#795BEC#795BEC

#795BEC is a mid, highly saturated violet. Relative luminance 0.176; OKLCH L 58.1% C 0.208 H 287.6°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#795BEC
RGBrgb(121, 91, 236)
HSLhsl(252, 79%, 64%)
HSVhsv(252, 61%, 93%)
CMYKcmyk(48.7%, 61.4%, 0%, 7.5%)
CIE-LABlab(49.01, 47.50, -69.38)
CIE-LCHlch(49.01, 84.08, 304.40°)
OKLaboklab(58.05% 0.063 -0.1986)
OKLCHoklch(58.05% 0.208 287.6)
XYZxyz(26.7622, 17.6020, 81.3280)
Luminance0.1760 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795BEC #CEEC5B
analogous
#5B86EC #795BEC #C25BEC
triadic
#795BEC #EC795B #5BEC79
tetradic
#795BEC #EC5B86 #CEEC5B #5BECC2
square
#795BEC #EC5B86 #CEEC5B #5BECC2
split-complementary
#795BEC #ECC25B #86EC5B
monochromatic
#3715B7 #4C24E6 #795BEC #A692F2 #D3C9F9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##795BEC#FFFFFF#000000##FFFFFF
##795BEC1.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)
#0078F1
Deuteranopia (green-blind)
#0071E9
Tritanopia (blue-blind)
#517D9B
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #795bec;
/* rgb */ color: rgb(121, 91, 236);
/* oklch */ color: oklch(58.1% 0.208 287.6);
Tailwind
colors: {
  custom: {
    50: '#a88bf3',
    500: '#795bec',
    950: '#000000',
  },
}
SCSS
$custom: #795bec;
$custom-light: #a88bf3;
$custom-dark: #000000;
JSON
{
  "hex": "#795bec",
  "rgb": {
    "r": 121,
    "g": 91,
    "b": 236
  },
  "hsl": {
    "h": 252.414,
    "s": 79.235,
    "l": 64.118
  },
  "oklch": {
    "l": 0.58053,
    "c": 0.20839,
    "h": 287.6
  },
  "luminance": 0.17603
}

Semantic roles & 50–950 ramp

primary
#795BEC
secondary
#E0EBB8
accent
#DC0AB0
background
#FAF8FF
surface
#F5F0FE
border
#CFCBD6
text
#110C17
muted
#807D85

Preview Lab

Preview with #795BEC

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

Preview Lab → · Contrast checker → · Palette generator →

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