#795AE3#795AE3

#795AE3 is a mid, vivid violet. Relative luminance 0.169; OKLCH L 57.2% C 0.199 H 289.0°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#795AE3
RGBrgb(121, 90, 227)
HSLhsl(254, 71%, 62%)
HSVhsv(254, 60%, 89%)
CMYKcmyk(46.7%, 60.4%, 0%, 11%)
CIE-LABlab(48.16, 45.51, -65.68)
CIE-LCHlch(48.16, 79.91, 304.72°)
OKLaboklab(57.23% 0.0645 -0.1878)
OKLCHoklch(57.23% 0.199 289)
XYZxyz(25.4025, 16.9223, 74.5860)
Luminance0.1692 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795AE3 #C4E35A
analogous
#5A7FE3 #795AE3 #BE5AE3
triadic
#795AE3 #E3795A #5AE379
tetradic
#795AE3 #E35A7F #C4E35A #5AE3BE
square
#795AE3 #E35A7F #C4E35A #5AE3BE
split-complementary
#795AE3 #E3BE5A #7FE35A
monochromatic
#3B1CA6 #4F26DA #795AE3 #A38EEC #CEC3F5

Accessibility & contrast

On white

4.79
#795AE3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#795AE3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795AE3
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795AE3#FFFFFF#000000##FFFFFF
##795AE31.004.794.384.79
#FFFFFF4.791.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075E7
Deuteranopia (green-blind)
#006FE0
Tritanopia (blue-blind)
#577A96
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #795ae3;
/* rgb */ color: rgb(121, 90, 227);
/* oklch */ color: oklch(57.2% 0.199 289.0);
Tailwind
colors: {
  custom: {
    50: '#a78aed',
    500: '#795ae3',
    950: '#000000',
  },
}
SCSS
$custom: #795ae3;
$custom-light: #a78aed;
$custom-dark: #000000;
JSON
{
  "hex": "#795ae3",
  "rgb": {
    "r": 121,
    "g": 90,
    "b": 227
  },
  "hsl": {
    "h": 253.577,
    "s": 70.984,
    "l": 62.157
  },
  "oklch": {
    "l": 0.57233,
    "c": 0.19856,
    "h": 289
  },
  "luminance": 0.16923
}

Semantic roles & 50–950 ramp

primary
#795AE3
secondary
#DAE6B3
accent
#D312A7
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100C16
muted
#7F7D84

Preview Lab

Preview with #795AE3

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

Preview Lab → · Contrast checker → · Palette generator →

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