#795CEF#795CEF

#795CEF is a mid, highly saturated violet. Relative luminance 0.180; OKLCH L 58.4% C 0.211 H 287.0°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#795CEF
RGBrgb(121, 92, 239)
HSLhsl(252, 82%, 65%)
HSVhsv(252, 62%, 94%)
CMYKcmyk(49.4%, 61.5%, 0%, 6.3%)
CIE-LABlab(49.44, 47.80, -70.37)
CIE-LCHlch(49.44, 85.07, 304.19°)
OKLaboklab(58.43% 0.0617 -0.2016)
OKLCHoklch(58.43% 0.211 287)
XYZxyz(27.2877, 17.9500, 83.6715)
Luminance0.1795 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795CEF #D2EF5C
analogous
#5C88EF #795CEF #C35CEF
triadic
#795CEF #EF795C #5CEF79
tetradic
#795CEF #EF5C88 #D2EF5C #5CEFC3
square
#795CEF #EF5C88 #D2EF5C #5CEFC3
split-complementary
#795CEF #EFC35C #88EF5C
monochromatic
#3413BE #4B24EA #795CEF #A794F4 #D5CBFA

Accessibility & contrast

On white

4.57
#795CEF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#795CEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #795CEF
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795CEF#FFFFFF#000000##000000
##795CEF1.004.574.594.59
#FFFFFF4.571.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079F4
Deuteranopia (green-blind)
#0071EC
Tritanopia (blue-blind)
#4F7F9D
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #795cef;
/* rgb */ color: rgb(121, 92, 239);
/* oklch */ color: oklch(58.4% 0.211 287.0);
Tailwind
colors: {
  custom: {
    50: '#a88bf5',
    500: '#795cef',
    950: '#000000',
  },
}
SCSS
$custom: #795cef;
$custom-light: #a88bf5;
$custom-dark: #000000;
JSON
{
  "hex": "#795cef",
  "rgb": {
    "r": 121,
    "g": 92,
    "b": 239
  },
  "hsl": {
    "h": 251.837,
    "s": 82.123,
    "l": 64.902
  },
  "oklch": {
    "l": 0.5843,
    "c": 0.21081,
    "h": 287
  },
  "luminance": 0.17951
}

Semantic roles & 50–950 ramp

primary
#795CEF
secondary
#E3ECBA
accent
#DF07B4
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #795CEF

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

Preview Lab → · Contrast checker → · Palette generator →

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