#7827C4#7827C4

#7827C4 is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 48.3% C 0.222 H 301.5°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#7827C4
RGBrgb(120, 39, 196)
HSLhsl(271, 67%, 46%)
HSVhsv(271, 80%, 77%)
CMYKcmyk(38.8%, 80.1%, 0%, 23.1%)
CIE-LABlab(36.80, 61.83, -66.36)
CIE-LCHlch(36.80, 90.70, 312.98°)
OKLaboklab(48.35% 0.1164 -0.1896)
OKLCHoklch(48.35% 0.222 301.5)
XYZxyz(18.4326, 9.4295, 53.0628)
Luminance0.0943 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7827C4 #73C427
analogous
#2927C4 #7827C4 #C427C1
triadic
#7827C4 #C47827 #27C478
tetradic
#7827C4 #C42927 #73C427 #27C1C4
square
#7827C4 #C42927 #73C427 #27C1C4
split-complementary
#7827C4 #C1C427 #27C429
monochromatic
#39135E #591D91 #7827C4 #964DDC #B480E6

Accessibility & contrast

On white

7.28
#7827C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#7827C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7827C4
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7827C4#FFFFFF#000000##FFFFFF
##7827C41.007.282.897.28
#FFFFFF7.281.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C8
Deuteranopia (green-blind)
#0056C1
Tritanopia (blue-blind)
#675376
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7827c4;
/* rgb */ color: rgb(120, 39, 196);
/* oklch */ color: oklch(48.3% 0.222 301.5);
Tailwind
colors: {
  custom: {
    50: '#a66cd7',
    500: '#7827c4',
    950: '#000000',
  },
}
SCSS
$custom: #7827c4;
$custom-light: #a66cd7;
$custom-dark: #000000;
JSON
{
  "hex": "#7827c4",
  "rgb": {
    "r": 120,
    "g": 39,
    "b": 196
  },
  "hsl": {
    "h": 270.955,
    "s": 66.809,
    "l": 46.078
  },
  "oklch": {
    "l": 0.48348,
    "c": 0.22246,
    "h": 301.5
  },
  "luminance": 0.0943
}

Semantic roles & 50–950 ramp

primary
#7827C4
secondary
#A2CE79
accent
#EA3E91
background
#FAF6FD
surface
#F4ECFA
border
#CEC7D3
text
#100715
muted
#7F7A83

Preview Lab

Preview with #7827C4

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

Preview Lab → · Contrast checker → · Palette generator →

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