#7827B8#7827B8

#7827B8 is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 47.3% C 0.211 H 304.6°. Best body text is #FFFFFF at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#7827B8
RGBrgb(120, 39, 184)
HSLhsl(274, 65%, 44%)
HSVhsv(274, 79%, 72%)
CMYKcmyk(34.8%, 78.8%, 0%, 27.8%)
CIE-LABlab(35.80, 59.10, -60.93)
CIE-LCHlch(35.80, 84.88, 314.13°)
OKLaboklab(47.35% 0.1197 -0.1737)
OKLCHoklch(47.35% 0.211 304.6)
XYZxyz(17.1210, 8.9049, 46.1549)
Luminance0.0891 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7827B8 #67B827
analogous
#2F27B8 #7827B8 #B827AF
triadic
#7827B8 #B87827 #27B878
tetradic
#7827B8 #B82F27 #67B827 #27AFB8
square
#7827B8 #B82F27 #67B827 #27AFB8
split-complementary
#7827B8 #AFB827 #27B82F
monochromatic
#361253 #571C86 #7827B8 #9745D8 #B377E2

Accessibility & contrast

On white

7.55
#7827B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#7827B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7827B8
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7827B8#FFFFFF#000000##FFFFFF
##7827B81.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BC
Deuteranopia (green-blind)
#0054B5
Tritanopia (blue-blind)
#6C4D70
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7827b8;
/* rgb */ color: rgb(120, 39, 184);
/* oklch */ color: oklch(47.3% 0.211 304.6);
Tailwind
colors: {
  custom: {
    50: '#a56bce',
    500: '#7827b8',
    950: '#000000',
  },
}
SCSS
$custom: #7827b8;
$custom-light: #a56bce;
$custom-dark: #000000;
JSON
{
  "hex": "#7827b8",
  "rgb": {
    "r": 120,
    "g": 39,
    "b": 184
  },
  "hsl": {
    "h": 273.517,
    "s": 65.022,
    "l": 43.725
  },
  "oklch": {
    "l": 0.47345,
    "c": 0.21091,
    "h": 304.6
  },
  "luminance": 0.08905
}

Semantic roles & 50–950 ramp

primary
#7827B8
secondary
#98CA71
accent
#E8408A
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100714
muted
#7F7A82

Preview Lab

Preview with #7827B8

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

Preview Lab → · Contrast checker → · Palette generator →

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