#795CDB#795CDB

#795CDB is a mid, vivid violet. Relative luminance 0.168; OKLCH L 57.0% C 0.186 H 289.7°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#795CDB
RGBrgb(121, 92, 219)
HSLhsl(254, 64%, 61%)
HSVhsv(254, 58%, 86%)
CMYKcmyk(44.7%, 58%, 0%, 14.1%)
CIE-LABlab(48.05, 42.12, -61.33)
CIE-LCHlch(48.05, 74.40, 304.48°)
OKLaboklab(56.98% 0.0627 -0.175)
OKLCHoklch(56.98% 0.186 289.7)
XYZxyz(24.4949, 16.8328, 68.9625)
Luminance0.1683 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795CDB #BEDB5C
analogous
#5C7EDB #795CDB #B85CDB
triadic
#795CDB #DB795C #5CDB79
tetradic
#795CDB #DB5C7E #BEDB5C #5CDBB8
square
#795CDB #DB5C7E #BEDB5C #5CDBB8
split-complementary
#795CDB #DBB85C #7EDB5C
monochromatic
#3E229A #522DCD #795CDB #A28EE6 #CBC0F1

Accessibility & contrast

On white

4.81
#795CDB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#795CDB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795CDB
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795CDB#FFFFFF#000000##FFFFFF
##795CDB1.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075DF
Deuteranopia (green-blind)
#036FD8
Tritanopia (blue-blind)
#5B7893
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #795cdb;
/* rgb */ color: rgb(121, 92, 219);
/* oklch */ color: oklch(57.0% 0.186 289.7);
Tailwind
colors: {
  custom: {
    50: '#a68be7',
    500: '#795cdb',
    950: '#000000',
  },
}
SCSS
$custom: #795cdb;
$custom-light: #a68be7;
$custom-dark: #000000;
JSON
{
  "hex": "#795cdb",
  "rgb": {
    "r": 121,
    "g": 92,
    "b": 219
  },
  "hsl": {
    "h": 253.701,
    "s": 63.819,
    "l": 60.98
  },
  "oklch": {
    "l": 0.56977,
    "c": 0.18585,
    "h": 289.7
  },
  "luminance": 0.16834
}

Semantic roles & 50–950 ramp

primary
#795CDB
secondary
#D6E1B1
accent
#CC1AA3
background
#FAF8FE
surface
#F4F0FC
border
#CECBD5
text
#100C16
muted
#7F7D84

Preview Lab

Preview with #795CDB

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

Preview Lab → · Contrast checker → · Palette generator →

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