#795FC7#795FC7

#795FC7 is a mid, vivid violet. Relative luminance 0.164; OKLCH L 56.1% C 0.156 H 292.2°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#795FC7
RGBrgb(121, 95, 199)
HSLhsl(255, 48%, 58%)
HSVhsv(255, 52%, 78%)
CMYKcmyk(39.2%, 52.3%, 0%, 22%)
CIE-LABlab(47.46, 34.78, -50.84)
CIE-LCHlch(47.46, 61.59, 304.38°)
OKLaboklab(56.14% 0.0587 -0.1441)
OKLCHoklch(56.14% 0.156 292.2)
XYZxyz(22.2834, 16.3723, 56.0079)
Luminance0.1637 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795FC7 #ADC75F
analogous
#5F79C7 #795FC7 #AD5FC7
triadic
#795FC7 #C7795F #5FC779
tetradic
#795FC7 #C75F79 #ADC75F #5FC7AD
square
#795FC7 #C75F79 #ADC75F #5FC7AD
split-complementary
#795FC7 #C7AD5F #79C75F
monochromatic
#412C7F #583CAC #795FC7 #9F8CD7 #C5BAE7

Accessibility & contrast

On white

4.91
#795FC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#795FC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795FC7
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795FC7#FFFFFF#000000##FFFFFF
##795FC71.004.914.274.91
#FFFFFF4.911.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3372CB
Deuteranopia (green-blind)
#376FC5
Tritanopia (blue-blind)
#65748A
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #795fc7;
/* rgb */ color: rgb(121, 95, 199);
/* oklch */ color: oklch(56.1% 0.156 292.2);
Tailwind
colors: {
  custom: {
    50: '#a48dd8',
    500: '#795fc7',
    950: '#000000',
  },
}
SCSS
$custom: #795fc7;
$custom-light: #a48dd8;
$custom-dark: #000000;
JSON
{
  "hex": "#795fc7",
  "rgb": {
    "r": 121,
    "g": 95,
    "b": 199
  },
  "hsl": {
    "h": 255,
    "s": 48.148,
    "l": 57.647
  },
  "oklch": {
    "l": 0.56135,
    "c": 0.15562,
    "h": 292.2
  },
  "luminance": 0.16373
}

Semantic roles & 50–950 ramp

primary
#795FC7
secondary
#CBD6AC
accent
#D850B6
background
#FAF8FD
surface
#F4F0FA
border
#CECBD3
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #795FC7

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

Preview Lab → · Contrast checker → · Palette generator →

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