#795281#795281

#795281 is a mid, moderate purple. Relative luminance 0.117; OKLCH L 49.9% C 0.086 H 320.6°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#795281
RGBrgb(121, 82, 129)
HSLhsl(290, 22%, 41%)
HSVhsv(290, 36%, 51%)
CMYKcmyk(6.2%, 36.4%, 0%, 49.4%)
CIE-LABlab(40.71, 24.94, -20.00)
CIE-LCHlch(40.71, 31.97, 321.27°)
OKLaboklab(49.89% 0.0666 -0.0547)
OKLCHoklch(49.89% 0.086 320.6)
XYZxyz(14.8644, 11.6850, 22.2370)
Luminance0.1168 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795281 #5A8152
analogous
#625281 #795281 #815272
triadic
#795281 #817952 #528179
tetradic
#795281 #816252 #5A8152 #527281
square
#795281 #816252 #5A8152 #527281
split-complementary
#795281 #728152 #528162
monochromatic
#332236 #563A5C #795281 #9A6EA3 #B493BA

Accessibility & contrast

On white

6.29
#795281 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#795281 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795281
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795281#FFFFFF#000000##FFFFFF
##7952811.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C5D83
Deuteranopia (green-blind)
#566180
Tritanopia (blue-blind)
#7A5763
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #795281;
/* rgb */ color: rgb(121, 82, 129);
/* oklch */ color: oklch(49.9% 0.086 320.6);
Tailwind
colors: {
  custom: {
    50: '#a083a5',
    500: '#795281',
    950: '#000000',
  },
}
SCSS
$custom: #795281;
$custom-light: #a083a5;
$custom-dark: #000000;
JSON
{
  "hex": "#795281",
  "rgb": {
    "r": 121,
    "g": 82,
    "b": 129
  },
  "hsl": {
    "h": 289.787,
    "s": 22.275,
    "l": 41.373
  },
  "oklch": {
    "l": 0.49886,
    "c": 0.08616,
    "h": 320.6
  },
  "luminance": 0.11685
}

Semantic roles & 50–950 ramp

primary
#795281
secondary
#8DA887
accent
#BF6978
background
#F9F8FA
surface
#F2EFF4
border
#CCCACE
text
#0F0A0F
muted
#7E7C7F

Preview Lab

Preview with #795281

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

Preview Lab → · Contrast checker → · Palette generator →

#795281 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva