#7827B4#7827B4

#7827B4 is a mid, highly saturated violet. Relative luminance 0.087; OKLCH L 47.0% C 0.207 H 305.7°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#7827B4
RGBrgb(120, 39, 180)
HSLhsl(274, 64%, 43%)
HSVhsv(274, 78%, 71%)
CMYKcmyk(33.3%, 78.3%, 0%, 29.4%)
CIE-LABlab(35.48, 58.20, -59.08)
CIE-LCHlch(35.48, 82.94, 314.57°)
OKLaboklab(47.02% 0.1207 -0.1682)
OKLCHoklch(47.02% 0.207 305.7)
XYZxyz(16.7076, 8.7395, 43.9779)
Luminance0.0874 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7827B4 #63B427
analogous
#3127B4 #7827B4 #B427A9
triadic
#7827B4 #B47827 #27B478
tetradic
#7827B4 #B43127 #63B427 #27A9B4
square
#7827B4 #B43127 #63B427 #27A9B4
split-complementary
#7827B4 #A9B427 #27B431
monochromatic
#35114F #561C82 #7827B4 #9742D6 #B374E1

Accessibility & contrast

On white

7.64
#7827B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#7827B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7827B4
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7827B4#FFFFFF#000000##FFFFFF
##7827B41.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B8
Deuteranopia (green-blind)
#0054B1
Tritanopia (blue-blind)
#6D4C6D
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7827b4;
/* rgb */ color: rgb(120, 39, 180);
/* oklch */ color: oklch(47.0% 0.207 305.7);
Tailwind
colors: {
  custom: {
    50: '#a56bcb',
    500: '#7827b4',
    950: '#000000',
  },
}
SCSS
$custom: #7827b4;
$custom-light: #a56bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#7827b4",
  "rgb": {
    "r": 120,
    "g": 39,
    "b": 180
  },
  "hsl": {
    "h": 274.468,
    "s": 64.384,
    "l": 42.941
  },
  "oklch": {
    "l": 0.47019,
    "c": 0.20706,
    "h": 305.7
  },
  "luminance": 0.08739
}

Semantic roles & 50–950 ramp

primary
#7827B4
secondary
#95C86F
accent
#E74087
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7827B4

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

Preview Lab → · Contrast checker → · Palette generator →

#7827B4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva