#795182#795182

#795182 is a mid, moderate purple. Relative luminance 0.116; OKLCH L 49.8% C 0.089 H 320.1°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#795182
RGBrgb(121, 81, 130)
HSLhsl(289, 23%, 41%)
HSVhsv(289, 38%, 51%)
CMYKcmyk(6.9%, 37.7%, 0%, 49%)
CIE-LABlab(40.51, 25.75, -20.92)
CIE-LCHlch(40.51, 33.18, 320.91°)
OKLaboklab(49.75% 0.0685 -0.0573)
OKLCHoklch(49.75% 0.089 320.1)
XYZxyz(14.8563, 11.5620, 22.5639)
Luminance0.1156 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795182 #5A8251
analogous
#615182 #795182 #825173
triadic
#795182 #827951 #518279
tetradic
#795182 #826151 #5A8251 #517382
square
#795182 #826151 #5A8251 #517382
split-complementary
#795182 #738251 #518261
monochromatic
#332237 #563A5C #795182 #9A6CA4 #B492BB

Accessibility & contrast

On white

6.34
#795182 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#795182 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795182
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795182#FFFFFF#000000##FFFFFF
##7951821.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B5D84
Deuteranopia (green-blind)
#556180
Tritanopia (blue-blind)
#7A5763
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #795182;
/* rgb */ color: rgb(121, 81, 130);
/* oklch */ color: oklch(49.8% 0.089 320.1);
Tailwind
colors: {
  custom: {
    50: '#a082a6',
    500: '#795182',
    950: '#000000',
  },
}
SCSS
$custom: #795182;
$custom-light: #a082a6;
$custom-dark: #000000;
JSON
{
  "hex": "#795182",
  "rgb": {
    "r": 121,
    "g": 81,
    "b": 130
  },
  "hsl": {
    "h": 288.98,
    "s": 23.223,
    "l": 41.373
  },
  "oklch": {
    "l": 0.4975,
    "c": 0.08927,
    "h": 320.1
  },
  "luminance": 0.11562
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #795182

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

Preview Lab → · Contrast checker → · Palette generator →

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