#795FA2#795FA2

#795FA2 is a mid, moderate violet. Relative luminance 0.149; OKLCH L 54.0% C 0.105 H 300.8°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#795FA2
RGBrgb(121, 95, 162)
HSLhsl(263, 26%, 50%)
HSVhsv(263, 41%, 64%)
CMYKcmyk(25.3%, 41.4%, 0%, 36.5%)
CIE-LABlab(45.44, 24.93, -32.46)
CIE-LCHlch(45.44, 40.92, 307.53°)
OKLaboklab(53.96% 0.054 -0.0905)
OKLCHoklch(53.96% 0.105 300.8)
XYZxyz(18.4975, 14.8579, 36.0688)
Luminance0.1486 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795FA2 #88A25F
analogous
#5F66A2 #795FA2 #9A5FA2
triadic
#795FA2 #A2795F #5FA279
tetradic
#795FA2 #A25F66 #88A25F #5FA29A
square
#795FA2 #A25F66 #88A25F #5FA29A
split-complementary
#795FA2 #A29A5F #66A25F
monochromatic
#3F3155 #5C487C #795FA2 #9986B8 #BAACCF

Accessibility & contrast

On white

5.29
#795FA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#795FA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795FA2
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795FA2#FFFFFF#000000##FFFFFF
##795FA21.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E6BA5
Deuteranopia (green-blind)
#536BA0
Tritanopia (blue-blind)
#716A79
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #795fa2;
/* rgb */ color: rgb(121, 95, 162);
/* oklch */ color: oklch(54.0% 0.105 300.8);
Tailwind
colors: {
  custom: {
    50: '#a18cbe',
    500: '#795fa2',
    950: '#000000',
  },
}
SCSS
$custom: #795fa2;
$custom-light: #a18cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#795fa2",
  "rgb": {
    "r": 121,
    "g": 95,
    "b": 162
  },
  "hsl": {
    "h": 263.284,
    "s": 26.482,
    "l": 50.392
  },
  "oklch": {
    "l": 0.53964,
    "c": 0.10535,
    "h": 300.8
  },
  "luminance": 0.14858
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #795FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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