#786299#786299

#786299 is a mid, moderate violet. Relative luminance 0.150; OKLCH L 54.0% C 0.087 H 301.9°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#786299
RGBrgb(120, 98, 153)
HSLhsl(264, 22%, 49%)
HSVhsv(264, 36%, 60%)
CMYKcmyk(21.6%, 35.9%, 0%, 40%)
CIE-LABlab(45.67, 20.56, -26.76)
CIE-LCHlch(45.67, 33.75, 307.54°)
OKLaboklab(53.98% 0.0462 -0.0741)
OKLCHoklch(53.98% 0.087 301.9)
XYZxyz(17.8620, 15.0283, 32.0906)
Luminance0.1503 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786299 #839962
analogous
#626899 #786299 #946299
triadic
#786299 #997862 #629978
tetradic
#786299 #996268 #839962 #629994
square
#786299 #996268 #839962 #629994
split-complementary
#786299 #999462 #689962
monochromatic
#3D324E #5B4A74 #786299 #9886B2 #B8ACCA

Accessibility & contrast

On white

5.24
#786299 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#786299 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786299
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786299#FFFFFF#000000##FFFFFF
##7862991.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#556C9B
Deuteranopia (green-blind)
#5A6C97
Tritanopia (blue-blind)
#726B76
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #786299;
/* rgb */ color: rgb(120, 98, 153);
/* oklch */ color: oklch(54.0% 0.087 301.9);
Tailwind
colors: {
  custom: {
    50: '#a08fb7',
    500: '#786299',
    950: '#000000',
  },
}
SCSS
$custom: #786299;
$custom-light: #a08fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#786299",
  "rgb": {
    "r": 120,
    "g": 98,
    "b": 153
  },
  "hsl": {
    "h": 264,
    "s": 21.912,
    "l": 49.216
  },
  "oklch": {
    "l": 0.53979,
    "c": 0.08734,
    "h": 301.9
  },
  "luminance": 0.15028
}

Semantic roles & 50–950 ramp

primary
#786299
secondary
#AEB89F
accent
#BE699C
background
#F9F8FB
surface
#F2F0F6
border
#CCCBD0
text
#0F0C11
muted
#7E7D80

Preview Lab

Preview with #786299

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

Preview Lab → · Contrast checker → · Palette generator →

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