#795CCB#795CCB

#795CCB is a mid, vivid violet. Relative luminance 0.160; OKLCH L 55.9% C 0.165 H 292.2°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#795CCB
RGBrgb(121, 92, 203)
HSLhsl(256, 52%, 58%)
HSVhsv(256, 55%, 80%)
CMYKcmyk(40.4%, 54.7%, 0%, 20.4%)
CIE-LABlab(47.01, 37.64, -53.85)
CIE-LCHlch(47.01, 65.70, 304.95°)
OKLaboklab(55.88% 0.0626 -0.153)
OKLCHoklch(55.88% 0.165 292.2)
XYZxyz(22.4889, 16.0304, 58.3976)
Luminance0.1603 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795CCB #AECB5C
analogous
#5C76CB #795CCB #B15CCB
triadic
#795CCB #CB795C #5CCB79
tetradic
#795CCB #CB5C76 #AECB5C #5CCBB1
square
#795CCB #CB5C76 #AECB5C #5CCBB1
split-complementary
#795CCB #CBB15C #76CB5C
monochromatic
#412A83 #5839B1 #795CCB #9F8ADA #C5B9E9

Accessibility & contrast

On white

4.99
#795CCB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#795CCB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795CCB
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795CCB#FFFFFF#000000##FFFFFF
##795CCB1.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2671CF
Deuteranopia (green-blind)
#2D6DC9
Tritanopia (blue-blind)
#63738B
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #795ccb;
/* rgb */ color: rgb(121, 92, 203);
/* oklch */ color: oklch(55.9% 0.165 292.2);
Tailwind
colors: {
  custom: {
    50: '#a48bdb',
    500: '#795ccb',
    950: '#000000',
  },
}
SCSS
$custom: #795ccb;
$custom-light: #a48bdb;
$custom-dark: #000000;
JSON
{
  "hex": "#795ccb",
  "rgb": {
    "r": 121,
    "g": 92,
    "b": 203
  },
  "hsl": {
    "h": 255.676,
    "s": 51.628,
    "l": 57.843
  },
  "oklch": {
    "l": 0.55884,
    "c": 0.16529,
    "h": 292.2
  },
  "luminance": 0.16031
}

Semantic roles & 50–950 ramp

primary
#795CCB
secondary
#CCD8AB
accent
#DB4DB6
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #795CCB

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

Preview Lab → · Contrast checker → · Palette generator →

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