#795CB1#795CB1

#795CB1 is a mid, vivid violet. Relative luminance 0.149; OKLCH L 54.3% C 0.131 H 297.6°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#795CB1
RGBrgb(121, 92, 177)
HSLhsl(260, 35%, 53%)
HSVhsv(260, 48%, 69%)
CMYKcmyk(31.6%, 48%, 0%, 30.6%)
CIE-LABlab(45.49, 30.60, -41.20)
CIE-LCHlch(45.49, 51.32, 306.60°)
OKLaboklab(54.25% 0.0607 -0.1159)
OKLCHoklch(54.25% 0.131 297.6)
XYZxyz(19.6462, 14.8933, 43.4261)
Luminance0.1489 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795CB1 #94B15C
analogous
#5C69B1 #795CB1 #A45CB1
triadic
#795CB1 #B1795C #5CB179
tetradic
#795CB1 #B15C69 #94B15C #5CB1A4
square
#795CB1 #B15C69 #94B15C #5CB1A4
split-complementary
#795CB1 #B1A45C #69B15C
monochromatic
#412F63 #5C438D #795CB1 #9B85C5 #BDAFD9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##795CB1#FFFFFF#000000##FFFFFF
##795CB11.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)
#406CB4
Deuteranopia (green-blind)
#466BAF
Tritanopia (blue-blind)
#6D6C7E
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #795cb1;
/* rgb */ color: rgb(121, 92, 177);
/* oklch */ color: oklch(54.3% 0.131 297.6);
Tailwind
colors: {
  custom: {
    50: '#a28bc9',
    500: '#795cb1',
    950: '#000000',
  },
}
SCSS
$custom: #795cb1;
$custom-light: #a28bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#795cb1",
  "rgb": {
    "r": 121,
    "g": 92,
    "b": 177
  },
  "hsl": {
    "h": 260.471,
    "s": 35.27,
    "l": 52.745
  },
  "oklch": {
    "l": 0.54254,
    "c": 0.13084,
    "h": 297.6
  },
  "luminance": 0.14894
}

Semantic roles & 50–950 ramp

primary
#795CB1
secondary
#BAC7A2
accent
#CB5CA6
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#0F0C13
muted
#7F7D82

Preview Lab

Preview with #795CB1

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

Preview Lab → · Contrast checker → · Palette generator →

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