#795CEB#795CEB

#795CEB is a mid, highly saturated violet. Relative luminance 0.177; OKLCH L 58.1% C 0.206 H 287.5°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#795CEB
RGBrgb(121, 92, 235)
HSLhsl(252, 78%, 64%)
HSVhsv(252, 61%, 92%)
CMYKcmyk(48.5%, 60.9%, 0%, 7.8%)
CIE-LABlab(49.15, 46.66, -68.59)
CIE-LCHlch(49.15, 82.95, 304.23°)
OKLaboklab(58.13% 0.062 -0.1963)
OKLCHoklch(58.13% 0.206 287.5)
XYZxyz(26.7033, 17.7162, 80.5937)
Luminance0.1772 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795CEB #CEEB5C
analogous
#5C87EB #795CEB #C15CEB
triadic
#795CEB #EB795C #5CEB79
tetradic
#795CEB #EB5C87 #CEEB5C #5CEBC1
square
#795CEB #EB5C87 #CEEB5C #5CEBC1
split-complementary
#795CEB #EBC15C #87EB5C
monochromatic
#3716B6 #4C25E4 #795CEB #A693F2 #D3C9F8

Accessibility & contrast

On white

4.62
#795CEB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#795CEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #795CEB
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795CEB#FFFFFF#000000##FFFFFF
##795CEB1.004.624.544.62
#FFFFFF4.621.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0078F0
Deuteranopia (green-blind)
#0071E8
Tritanopia (blue-blind)
#517E9B
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #795ceb;
/* rgb */ color: rgb(121, 92, 235);
/* oklch */ color: oklch(58.1% 0.206 287.5);
Tailwind
colors: {
  custom: {
    50: '#a88bf2',
    500: '#795ceb',
    950: '#000000',
  },
}
SCSS
$custom: #795ceb;
$custom-light: #a88bf2;
$custom-dark: #000000;
JSON
{
  "hex": "#795ceb",
  "rgb": {
    "r": 121,
    "g": 92,
    "b": 235
  },
  "hsl": {
    "h": 252.168,
    "s": 78.142,
    "l": 64.118
  },
  "oklch": {
    "l": 0.58132,
    "c": 0.20589,
    "h": 287.5
  },
  "luminance": 0.17717
}

Semantic roles & 50–950 ramp

primary
#795CEB
secondary
#E0EAB8
accent
#DA0BB0
background
#FAF8FE
surface
#F5F0FD
border
#CFCBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #795CEB

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

Preview Lab → · Contrast checker → · Palette generator →

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