#795AAF#795AAF

#795AAF is a mid, vivid violet. Relative luminance 0.145; OKLCH L 53.8% C 0.131 H 298.7°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#795AAF
RGBrgb(121, 90, 175)
HSLhsl(262, 35%, 52%)
HSVhsv(262, 49%, 69%)
CMYKcmyk(30.9%, 48.6%, 0%, 31.4%)
CIE-LABlab(44.90, 31.26, -40.96)
CIE-LCHlch(44.90, 51.52, 307.35°)
OKLaboklab(53.78% 0.0632 -0.1152)
OKLCHoklch(53.78% 0.131 298.7)
XYZxyz(19.2773, 14.4723, 42.3269)
Luminance0.1447 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795AAF #90AF5A
analogous
#5A66AF #795AAF #A45AAF
triadic
#795AAF #AF795A #5AAF79
tetradic
#795AAF #AF5A66 #90AF5A #5AAFA4
square
#795AAF #AF5A66 #90AF5A #5AAFA4
split-complementary
#795AAF #AFA45A #66AF5A
monochromatic
#412F60 #5C4389 #795AAF #9A83C3 #BCACD7

Accessibility & contrast

On white

5.39
#795AAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#795AAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795AAF
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795AAF#FFFFFF#000000##FFFFFF
##795AAF1.005.393.895.39
#FFFFFF5.391.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E6AB2
Deuteranopia (green-blind)
#4669AD
Tritanopia (blue-blind)
#6E6A7C
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #795aaf;
/* rgb */ color: rgb(121, 90, 175);
/* oklch */ color: oklch(53.8% 0.131 298.7);
Tailwind
colors: {
  custom: {
    50: '#a289c7',
    500: '#795aaf',
    950: '#000000',
  },
}
SCSS
$custom: #795aaf;
$custom-light: #a289c7;
$custom-dark: #000000;
JSON
{
  "hex": "#795aaf",
  "rgb": {
    "r": 121,
    "g": 90,
    "b": 175
  },
  "hsl": {
    "h": 261.882,
    "s": 34.694,
    "l": 51.961
  },
  "oklch": {
    "l": 0.53781,
    "c": 0.1314,
    "h": 298.7
  },
  "luminance": 0.14472
}

Semantic roles & 50–950 ramp

primary
#795AAF
secondary
#B7C5A0
accent
#CB5DA3
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#0F0B13
muted
#7F7C82

Preview Lab

Preview with #795AAF

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

Preview Lab → · Contrast checker → · Palette generator →

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