#795FB2#795FB2

#795FB2 is a mid, vivid violet. Relative luminance 0.155; OKLCH L 54.9% C 0.127 H 296.4°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#795FB2
RGBrgb(121, 95, 178)
HSLhsl(259, 35%, 54%)
HSVhsv(259, 47%, 70%)
CMYKcmyk(32%, 46.6%, 0%, 30.2%)
CIE-LABlab(46.26, 29.08, -40.56)
CIE-LCHlch(46.26, 49.91, 305.64°)
OKLaboklab(54.85% 0.0566 -0.114)
OKLCHoklch(54.85% 0.127 296.4)
XYZxyz(20.0113, 15.4635, 44.0413)
Luminance0.1546 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795FB2 #98B25F
analogous
#5F6EB2 #795FB2 #A25FB2
triadic
#795FB2 #B2795F #5FB279
tetradic
#795FB2 #B25F6E #98B25F #5FB2A2
square
#795FB2 #B25F6E #98B25F #5FB2A2
split-complementary
#795FB2 #B2A25F #6EB25F
monochromatic
#413166 #5C458F #795FB2 #9C88C6 #BEB2DA

Accessibility & contrast

On white

5.13
#795FB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#795FB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795FB2
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795FB2#FFFFFF#000000##FFFFFF
##795FB21.005.134.095.13
#FFFFFF5.131.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#446EB5
Deuteranopia (green-blind)
#496DB0
Tritanopia (blue-blind)
#6D6E80
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #795fb2;
/* rgb */ color: rgb(121, 95, 178);
/* oklch */ color: oklch(54.9% 0.127 296.4);
Tailwind
colors: {
  custom: {
    50: '#a28dc9',
    500: '#795fb2',
    950: '#000000',
  },
}
SCSS
$custom: #795fb2;
$custom-light: #a28dc9;
$custom-dark: #000000;
JSON
{
  "hex": "#795fb2",
  "rgb": {
    "r": 121,
    "g": 95,
    "b": 178
  },
  "hsl": {
    "h": 258.795,
    "s": 35.021,
    "l": 53.529
  },
  "oklch": {
    "l": 0.54853,
    "c": 0.12734,
    "h": 296.4
  },
  "luminance": 0.15464
}

Semantic roles & 50–950 ramp

primary
#795FB2
secondary
#BDC8A5
accent
#CB5DA9
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#0F0C13
muted
#7F7D82

Preview Lab

Preview with #795FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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