#795DBC#795DBC

#795DBC is a mid, vivid violet. Relative luminance 0.155; OKLCH L 55.1% C 0.144 H 294.8°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#795DBC
RGBrgb(121, 93, 188)
HSLhsl(258, 41%, 55%)
HSVhsv(258, 51%, 74%)
CMYKcmyk(35.6%, 50.5%, 0%, 26.3%)
CIE-LABlab(46.34, 32.94, -46.26)
CIE-LCHlch(46.34, 56.79, 305.46°)
OKLaboklab(55.1% 0.0604 -0.1307)
OKLCHoklch(55.1% 0.144 294.8)
XYZxyz(20.8743, 15.5241, 49.4639)
Luminance0.1552 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795DBC #A0BC5D
analogous
#5D71BC #795DBC #A85DBC
triadic
#795DBC #BC795D #5DBC79
tetradic
#795DBC #BC5D71 #A0BC5D #5DBCA8
square
#795DBC #BC5D71 #A0BC5D #5DBCA8
split-complementary
#795DBC #BCA85D #71BC5D
monochromatic
#422E70 #5B409B #795DBC #9D88CE #C1B4E0

Accessibility & contrast

On white

5.12
#795DBC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#795DBC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795DBC
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795DBC#FFFFFF#000000##FFFFFF
##795DBC1.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#396FBF
Deuteranopia (green-blind)
#3F6CBA
Tritanopia (blue-blind)
#697084
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #795dbc;
/* rgb */ color: rgb(121, 93, 188);
/* oklch */ color: oklch(55.1% 0.144 294.8);
Tailwind
colors: {
  custom: {
    50: '#a38bd1',
    500: '#795dbc',
    950: '#000000',
  },
}
SCSS
$custom: #795dbc;
$custom-light: #a38bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#795dbc",
  "rgb": {
    "r": 121,
    "g": 93,
    "b": 188
  },
  "hsl": {
    "h": 257.684,
    "s": 41.485,
    "l": 55.098
  },
  "oklch": {
    "l": 0.55095,
    "c": 0.14401,
    "h": 294.8
  },
  "luminance": 0.15524
}

Semantic roles & 50–950 ramp

primary
#795DBC
secondary
#C3CEA6
accent
#D156AD
background
#FAF8FC
surface
#F4F0F9
border
#CECBD2
text
#0F0C14
muted
#7F7D82

Preview Lab

Preview with #795DBC

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

Preview Lab → · Contrast checker → · Palette generator →

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