#795CB8#795CB8

#795CB8 is a mid, vivid violet. Relative luminance 0.152; OKLCH L 54.7% C 0.140 H 296.0°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#795CB8
RGBrgb(121, 92, 184)
HSLhsl(259, 39%, 54%)
HSVhsv(259, 50%, 72%)
CMYKcmyk(34.2%, 50%, 0%, 27.8%)
CIE-LABlab(45.88, 32.46, -44.67)
CIE-LCHlch(45.88, 55.22, 306.00°)
OKLaboklab(54.67% 0.0614 -0.1261)
OKLCHoklch(54.67% 0.14 296)
XYZxyz(20.3619, 15.1796, 47.1953)
Luminance0.1518 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795CB8 #9BB85C
analogous
#5C6DB8 #795CB8 #A75CB8
triadic
#795CB8 #B8795C #5CB879
tetradic
#795CB8 #B85C6D #9BB85C #5CB8A7
square
#795CB8 #B85C6D #9BB85C #5CB8A7
split-complementary
#795CB8 #B8A75C #6DB85C
monochromatic
#422F6B #5C4196 #795CB8 #9C87CB #BFB1DD

Accessibility & contrast

On white

5.20
#795CB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#795CB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795CB8
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795CB8#FFFFFF#000000##FFFFFF
##795CB81.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B6DBB
Deuteranopia (green-blind)
#416BB6
Tritanopia (blue-blind)
#6B6E81
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #795cb8;
/* rgb */ color: rgb(121, 92, 184);
/* oklch */ color: oklch(54.7% 0.140 296.0);
Tailwind
colors: {
  custom: {
    50: '#a38bce',
    500: '#795cb8',
    950: '#000000',
  },
}
SCSS
$custom: #795cb8;
$custom-light: #a38bce;
$custom-dark: #000000;
JSON
{
  "hex": "#795cb8",
  "rgb": {
    "r": 121,
    "g": 92,
    "b": 184
  },
  "hsl": {
    "h": 258.913,
    "s": 39.316,
    "l": 54.118
  },
  "oklch": {
    "l": 0.54674,
    "c": 0.14022,
    "h": 296
  },
  "luminance": 0.1518
}

Semantic roles & 50–950 ramp

primary
#795CB8
secondary
#BFCBA4
accent
#CF59AA
background
#FAF8FC
surface
#F4F0F9
border
#CECBD2
text
#0F0C13
muted
#7F7D82

Preview Lab

Preview with #795CB8

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

Preview Lab → · Contrast checker → · Palette generator →

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