#795EA8#795EA8

#795EA8 is a mid, moderate violet. Relative luminance 0.149; OKLCH L 54.1% C 0.115 H 299.4°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#795EA8
RGBrgb(121, 94, 168)
HSLhsl(262, 30%, 51%)
HSVhsv(262, 44%, 66%)
CMYKcmyk(28%, 44%, 0%, 34.1%)
CIE-LABlab(45.49, 27.06, -35.91)
CIE-LCHlch(45.49, 44.96, 307.00°)
OKLaboklab(54.1% 0.0565 -0.1005)
OKLCHoklch(54.1% 0.115 299.4)
XYZxyz(18.9541, 14.8974, 38.9151)
Luminance0.1490 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795EA8 #8DA85E
analogous
#5E68A8 #795EA8 #9E5EA8
triadic
#795EA8 #A8795E #5EA879
tetradic
#795EA8 #A85E68 #8DA85E #5EA89E
square
#795EA8 #A85E68 #8DA85E #5EA89E
split-complementary
#795EA8 #A89E5E #68A85E
monochromatic
#40315B #5C4682 #795EA8 #9A86BD #BBADD3

Accessibility & contrast

On white

5.28
#795EA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#795EA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795EA8
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795EA8#FFFFFF#000000##FFFFFF
##795EA81.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#496CAB
Deuteranopia (green-blind)
#4F6BA6
Tritanopia (blue-blind)
#706B7B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #795ea8;
/* rgb */ color: rgb(121, 94, 168);
/* oklch */ color: oklch(54.1% 0.115 299.4);
Tailwind
colors: {
  custom: {
    50: '#a18cc2',
    500: '#795ea8',
    950: '#000000',
  },
}
SCSS
$custom: #795ea8;
$custom-light: #a18cc2;
$custom-dark: #000000;
JSON
{
  "hex": "#795ea8",
  "rgb": {
    "r": 121,
    "g": 94,
    "b": 168
  },
  "hsl": {
    "h": 261.892,
    "s": 29.839,
    "l": 51.373
  },
  "oklch": {
    "l": 0.54103,
    "c": 0.11531,
    "h": 299.4
  },
  "luminance": 0.14898
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #795EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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