#795EA7#795EA7

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

Color values

HEX#795EA7
RGBrgb(121, 94, 167)
HSLhsl(262, 29%, 51%)
HSVhsv(262, 44%, 65%)
CMYKcmyk(27.5%, 43.7%, 0%, 34.5%)
CIE-LABlab(45.44, 26.80, -35.40)
CIE-LCHlch(45.44, 44.40, 307.13°)
OKLaboklab(54.05% 0.0564 -0.099)
OKLCHoklch(54.05% 0.114 299.6)
XYZxyz(18.8613, 14.8603, 38.4264)
Luminance0.1486 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795EA7 #8CA75E
analogous
#5E67A7 #795EA7 #9D5EA7
triadic
#795EA7 #A7795E #5EA779
tetradic
#795EA7 #A75E67 #8CA75E #5EA79D
square
#795EA7 #A75E67 #8CA75E #5EA79D
split-complementary
#795EA7 #A79D5E #67A75E
monochromatic
#40315A #5C4781 #795EA7 #9A86BD #BBADD2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##795EA7#FFFFFF#000000##FFFFFF
##795EA71.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)
#4A6BAA
Deuteranopia (green-blind)
#4F6BA5
Tritanopia (blue-blind)
#706B7A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #795ea7;
/* rgb */ color: rgb(121, 94, 167);
/* oklch */ color: oklch(54.0% 0.114 299.6);
Tailwind
colors: {
  custom: {
    50: '#a18cc1',
    500: '#795ea7',
    950: '#000000',
  },
}
SCSS
$custom: #795ea7;
$custom-light: #a18cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#795ea7",
  "rgb": {
    "r": 121,
    "g": 94,
    "b": 167
  },
  "hsl": {
    "h": 262.192,
    "s": 29.317,
    "l": 51.176
  },
  "oklch": {
    "l": 0.54048,
    "c": 0.11394,
    "h": 299.6
  },
  "luminance": 0.1486
}

Semantic roles & 50–950 ramp

primary
#795EA7
secondary
#B5C1A0
accent
#C662A1
background
#FAF8FB
surface
#F4F0F7
border
#CECBD0
text
#0F0C12
muted
#7F7D81

Preview Lab

Preview with #795EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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