#795EBA#795EBA

#795EBA is a mid, vivid violet. Relative luminance 0.156; OKLCH L 55.1% C 0.140 H 294.9°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#795EBA
RGBrgb(121, 94, 186)
HSLhsl(258, 40%, 55%)
HSVhsv(258, 49%, 73%)
CMYKcmyk(34.9%, 49.5%, 0%, 27.1%)
CIE-LABlab(46.47, 31.81, -44.90)
CIE-LCHlch(46.47, 55.03, 305.32°)
OKLaboklab(55.15% 0.0589 -0.1267)
OKLCHoklch(55.15% 0.14 294.9)
XYZxyz(20.7485, 15.6152, 48.3657)
Luminance0.1562 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795EBA #9FBA5E
analogous
#5E71BA #795EBA #A75EBA
triadic
#795EBA #BA795E #5EBA79
tetradic
#795EBA #BA5E71 #9FBA5E #5EBAA7
square
#795EBA #BA5E71 #9FBA5E #5EBAA7
split-complementary
#795EBA #BAA75E #71BA5E
monochromatic
#422F6E #5B4299 #795EBA #9D89CC #C0B4DF

Accessibility & contrast

On white

5.09
#795EBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#795EBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795EBA
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795EBA#FFFFFF#000000##FFFFFF
##795EBA1.005.094.125.09
#FFFFFF5.091.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D6FBD
Deuteranopia (green-blind)
#426DB8
Tritanopia (blue-blind)
#6A7083
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #795eba;
/* rgb */ color: rgb(121, 94, 186);
/* oklch */ color: oklch(55.1% 0.140 294.9);
Tailwind
colors: {
  custom: {
    50: '#a38ccf',
    500: '#795eba',
    950: '#000000',
  },
}
SCSS
$custom: #795eba;
$custom-light: #a38ccf;
$custom-dark: #000000;
JSON
{
  "hex": "#795eba",
  "rgb": {
    "r": 121,
    "g": 94,
    "b": 186
  },
  "hsl": {
    "h": 257.609,
    "s": 40,
    "l": 54.902
  },
  "oklch": {
    "l": 0.55149,
    "c": 0.13977,
    "h": 294.9
  },
  "luminance": 0.15616
}

Semantic roles & 50–950 ramp

primary
#795EBA
secondary
#C2CDA7
accent
#D058AD
background
#FAF8FC
surface
#F4F0F9
border
#CECBD2
text
#0F0C14
muted
#7F7D82

Preview Lab

Preview with #795EBA

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

Preview Lab → · Contrast checker → · Palette generator →

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