#795CB5#795CB5

#795CB5 is a mid, vivid violet. Relative luminance 0.151; OKLCH L 54.5% C 0.136 H 296.7°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#795CB5
RGBrgb(121, 92, 181)
HSLhsl(260, 38%, 54%)
HSVhsv(260, 49%, 71%)
CMYKcmyk(33.1%, 49.2%, 0%, 29%)
CIE-LABlab(45.71, 31.66, -43.19)
CIE-LCHlch(45.71, 53.55, 306.24°)
OKLaboklab(54.49% 0.0611 -0.1217)
OKLCHoklch(54.49% 0.136 296.7)
XYZxyz(20.0507, 15.0552, 45.5567)
Luminance0.1505 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795CB5 #98B55C
analogous
#5C6BB5 #795CB5 #A65CB5
triadic
#795CB5 #B5795C #5CB579
tetradic
#795CB5 #B55C6B #98B55C #5CB5A6
square
#795CB5 #B55C6B #98B55C #5CB5A6
split-complementary
#795CB5 #B5A65C #6BB55C
monochromatic
#412F68 #5C4292 #795CB5 #9C86C8 #BEB0DB

Accessibility & contrast

On white

5.24
#795CB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#795CB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795CB5
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795CB5#FFFFFF#000000##FFFFFF
##795CB51.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D6DB8
Deuteranopia (green-blind)
#446BB3
Tritanopia (blue-blind)
#6C6D80
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #795cb5;
/* rgb */ color: rgb(121, 92, 181);
/* oklch */ color: oklch(54.5% 0.136 296.7);
Tailwind
colors: {
  custom: {
    50: '#a28bcb',
    500: '#795cb5',
    950: '#000000',
  },
}
SCSS
$custom: #795cb5;
$custom-light: #a28bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#795cb5",
  "rgb": {
    "r": 121,
    "g": 92,
    "b": 181
  },
  "hsl": {
    "h": 259.551,
    "s": 37.553,
    "l": 53.529
  },
  "oklch": {
    "l": 0.54492,
    "c": 0.1362,
    "h": 296.7
  },
  "luminance": 0.15055
}

Semantic roles & 50–950 ramp

primary
#795CB5
secondary
#BDC9A3
accent
#CE5AA8
background
#FAF8FC
surface
#F4F0F9
border
#CECBD2
text
#0F0C13
muted
#7F7D82

Preview Lab

Preview with #795CB5

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

Preview Lab → · Contrast checker → · Palette generator →

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