#7827B7#7827B7

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

Color values

HEX#7827B7
RGBrgb(120, 39, 183)
HSLhsl(274, 65%, 44%)
HSVhsv(274, 79%, 72%)
CMYKcmyk(34.4%, 78.7%, 0%, 28.2%)
CIE-LABlab(35.72, 58.88, -60.47)
CIE-LCHlch(35.72, 84.40, 314.24°)
OKLaboklab(47.26% 0.12 -0.1723)
OKLCHoklch(47.26% 0.21 304.8)
XYZxyz(17.0165, 8.8631, 45.6048)
Luminance0.0886 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7827B7 #66B727
analogous
#3027B7 #7827B7 #B727AE
triadic
#7827B7 #B77827 #27B778
tetradic
#7827B7 #B73027 #66B727 #27AEB7
square
#7827B7 #B73027 #66B727 #27AEB7
split-complementary
#7827B7 #AEB727 #27B730
monochromatic
#361152 #571C85 #7827B7 #9744D7 #B376E2

Accessibility & contrast

On white

7.57
#7827B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#7827B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7827B7
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7827B7#FFFFFF#000000##FFFFFF
##7827B71.007.572.777.57
#FFFFFF7.571.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BB
Deuteranopia (green-blind)
#0054B4
Tritanopia (blue-blind)
#6C4D6F
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7827b7;
/* rgb */ color: rgb(120, 39, 183);
/* oklch */ color: oklch(47.3% 0.210 304.8);
Tailwind
colors: {
  custom: {
    50: '#a56bce',
    500: '#7827b7',
    950: '#000000',
  },
}
SCSS
$custom: #7827b7;
$custom-light: #a56bce;
$custom-dark: #000000;
JSON
{
  "hex": "#7827b7",
  "rgb": {
    "r": 120,
    "g": 39,
    "b": 183
  },
  "hsl": {
    "h": 273.75,
    "s": 64.865,
    "l": 43.529
  },
  "oklch": {
    "l": 0.47263,
    "c": 0.20995,
    "h": 304.8
  },
  "luminance": 0.08863
}

Semantic roles & 50–950 ramp

primary
#7827B7
secondary
#97C970
accent
#E84089
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100714
muted
#7F7A82

Preview Lab

Preview with #7827B7

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

Preview Lab → · Contrast checker → · Palette generator →

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