#795EA2#795EA2

#795EA2 is a mid, moderate violet. Relative luminance 0.147; OKLCH L 53.8% C 0.107 H 301.2°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#795EA2
RGBrgb(121, 94, 162)
HSLhsl(264, 27%, 50%)
HSVhsv(264, 42%, 64%)
CMYKcmyk(25.3%, 42%, 0%, 36.5%)
CIE-LABlab(45.19, 25.53, -32.84)
CIE-LCHlch(45.19, 41.60, 307.86°)
OKLaboklab(53.78% 0.0555 -0.0916)
OKLCHoklch(53.78% 0.107 301.2)
XYZxyz(18.4080, 14.6789, 36.0389)
Luminance0.1468 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795EA2 #87A25E
analogous
#5E65A2 #795EA2 #9B5EA2
triadic
#795EA2 #A2795E #5EA279
tetradic
#795EA2 #A25E65 #87A25E #5EA29B
square
#795EA2 #A25E65 #87A25E #5EA29B
split-complementary
#795EA2 #A29B5E #65A25E
monochromatic
#3F3155 #5C477B #795EA2 #9985B8 #BAACCF

Accessibility & contrast

On white

5.34
#795EA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#795EA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795EA2
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795EA2#FFFFFF#000000##FFFFFF
##795EA21.005.343.945.34
#FFFFFF5.341.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C6BA5
Deuteranopia (green-blind)
#526BA0
Tritanopia (blue-blind)
#726978
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #795ea2;
/* rgb */ color: rgb(121, 94, 162);
/* oklch */ color: oklch(53.8% 0.107 301.2);
Tailwind
colors: {
  custom: {
    50: '#a18cbe',
    500: '#795ea2',
    950: '#000000',
  },
}
SCSS
$custom: #795ea2;
$custom-light: #a18cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#795ea2",
  "rgb": {
    "r": 121,
    "g": 94,
    "b": 162
  },
  "hsl": {
    "h": 263.824,
    "s": 26.772,
    "l": 50.196
  },
  "oklch": {
    "l": 0.53776,
    "c": 0.10708,
    "h": 301.2
  },
  "luminance": 0.14679
}

Semantic roles & 50–950 ramp

primary
#795EA2
secondary
#B1BD9F
accent
#C3659E
background
#FAF8FB
surface
#F3F0F6
border
#CDCBD0
text
#0F0C12
muted
#7F7D81

Preview Lab

Preview with #795EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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