#795EB2#795EB2

#795EB2 is a mid, vivid violet. Relative luminance 0.153; OKLCH L 54.7% C 0.129 H 296.7°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#795EB2
RGBrgb(121, 94, 178)
HSLhsl(259, 35%, 53%)
HSVhsv(259, 47%, 70%)
CMYKcmyk(32%, 47.2%, 0%, 30.2%)
CIE-LABlab(46.02, 29.67, -40.94)
CIE-LCHlch(46.02, 50.57, 305.93°)
OKLaboklab(54.67% 0.058 -0.1152)
OKLCHoklch(54.67% 0.129 296.7)
XYZxyz(19.9218, 15.2845, 44.0115)
Luminance0.1529 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795EB2 #97B25E
analogous
#5E6DB2 #795EB2 #A35EB2
triadic
#795EB2 #B2795E #5EB279
tetradic
#795EB2 #B25E6D #97B25E #5EB2A3
square
#795EB2 #B25E6D #97B25E #5EB2A3
split-complementary
#795EB2 #B2A35E #6DB25E
monochromatic
#413065 #5C448F #795EB2 #9B87C6 #BEB1DA

Accessibility & contrast

On white

5.18
#795EB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#795EB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795EB2
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795EB2#FFFFFF#000000##FFFFFF
##795EB21.005.184.065.18
#FFFFFF5.181.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#436DB5
Deuteranopia (green-blind)
#486CB0
Tritanopia (blue-blind)
#6D6E7F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #795eb2;
/* rgb */ color: rgb(121, 94, 178);
/* oklch */ color: oklch(54.7% 0.129 296.7);
Tailwind
colors: {
  custom: {
    50: '#a28cc9',
    500: '#795eb2',
    950: '#000000',
  },
}
SCSS
$custom: #795eb2;
$custom-light: #a28cc9;
$custom-dark: #000000;
JSON
{
  "hex": "#795eb2",
  "rgb": {
    "r": 121,
    "g": 94,
    "b": 178
  },
  "hsl": {
    "h": 259.286,
    "s": 35.294,
    "l": 53.333
  },
  "oklch": {
    "l": 0.54672,
    "c": 0.12895,
    "h": 296.7
  },
  "luminance": 0.15285
}

Semantic roles & 50–950 ramp

primary
#795EB2
secondary
#BCC8A4
accent
#CB5CA8
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#0F0C13
muted
#7F7D82

Preview Lab

Preview with #795EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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