#795EAF#795EAF

#795EAF is a mid, vivid violet. Relative luminance 0.152; OKLCH L 54.5% C 0.125 H 297.5°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#795EAF
RGBrgb(121, 94, 175)
HSLhsl(260, 34%, 53%)
HSVhsv(260, 46%, 69%)
CMYKcmyk(30.9%, 46.3%, 0%, 31.4%)
CIE-LABlab(45.86, 28.88, -39.44)
CIE-LCHlch(45.86, 48.89, 306.21°)
OKLaboklab(54.5% 0.0576 -0.1108)
OKLCHoklch(54.5% 0.125 297.5)
XYZxyz(19.6239, 15.1653, 42.4424)
Luminance0.1517 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795EAF #94AF5E
analogous
#5E6BAF #795EAF #A15EAF
triadic
#795EAF #AF795E #5EAF79
tetradic
#795EAF #AF5E6B #94AF5E #5EAFA1
square
#795EAF #AF5E6B #94AF5E #5EAFA1
split-complementary
#795EAF #AFA15E #6BAF5E
monochromatic
#413162 #5C458B #795EAF #9B87C3 #BDB0D8

Accessibility & contrast

On white

5.21
#795EAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#795EAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795EAF
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795EAF#FFFFFF#000000##FFFFFF
##795EAF1.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#456DB2
Deuteranopia (green-blind)
#4A6CAD
Tritanopia (blue-blind)
#6E6D7E
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #795eaf;
/* rgb */ color: rgb(121, 94, 175);
/* oklch */ color: oklch(54.5% 0.125 297.5);
Tailwind
colors: {
  custom: {
    50: '#a28cc7',
    500: '#795eaf',
    950: '#000000',
  },
}
SCSS
$custom: #795eaf;
$custom-light: #a28cc7;
$custom-dark: #000000;
JSON
{
  "hex": "#795eaf",
  "rgb": {
    "r": 121,
    "g": 94,
    "b": 175
  },
  "hsl": {
    "h": 260,
    "s": 33.61,
    "l": 52.745
  },
  "oklch": {
    "l": 0.54498,
    "c": 0.12487,
    "h": 297.5
  },
  "luminance": 0.15166
}

Semantic roles & 50–950 ramp

primary
#795EAF
secondary
#BAC6A3
accent
#CA5EA6
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#0F0C13
muted
#7F7D82

Preview Lab

Preview with #795EAF

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

Preview Lab → · Contrast checker → · Palette generator →

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