#7827C5#7827C5

#7827C5 is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.4% C 0.223 H 301.3°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#7827C5
RGBrgb(120, 39, 197)
HSLhsl(271, 67%, 46%)
HSVhsv(271, 80%, 77%)
CMYKcmyk(39.1%, 80.2%, 0%, 22.7%)
CIE-LABlab(36.88, 62.06, -66.80)
CIE-LCHlch(36.88, 91.18, 312.89°)
OKLaboklab(48.43% 0.1161 -0.1909)
OKLCHoklch(48.43% 0.223 301.3)
XYZxyz(18.5468, 9.4752, 53.6643)
Luminance0.0948 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7827C5 #74C527
analogous
#2927C5 #7827C5 #C527C3
triadic
#7827C5 #C57827 #27C578
tetradic
#7827C5 #C52927 #74C527 #27C3C5
square
#7827C5 #C52927 #74C527 #27C3C5
split-complementary
#7827C5 #C3C527 #27C529
monochromatic
#3A135F #591D92 #7827C5 #964DDC #B480E6

Accessibility & contrast

On white

7.25
#7827C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7827C5
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7827C5#FFFFFF#000000##FFFFFF
##7827C51.007.252.897.25
#FFFFFF7.251.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C9
Deuteranopia (green-blind)
#0056C2
Tritanopia (blue-blind)
#675377
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7827c5;
/* rgb */ color: rgb(120, 39, 197);
/* oklch */ color: oklch(48.4% 0.223 301.3);
Tailwind
colors: {
  custom: {
    50: '#a66cd8',
    500: '#7827c5',
    950: '#000000',
  },
}
SCSS
$custom: #7827c5;
$custom-light: #a66cd8;
$custom-dark: #000000;
JSON
{
  "hex": "#7827c5",
  "rgb": {
    "r": 120,
    "g": 39,
    "b": 197
  },
  "hsl": {
    "h": 270.759,
    "s": 66.949,
    "l": 46.275
  },
  "oklch": {
    "l": 0.48434,
    "c": 0.22342,
    "h": 301.3
  },
  "luminance": 0.09475
}

Semantic roles & 50–950 ramp

primary
#7827C5
secondary
#A3CF79
accent
#EA3E92
background
#FAF6FD
surface
#F4ECFA
border
#CEC7D3
text
#100715
muted
#7F7A83

Preview Lab

Preview with #7827C5

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

Preview Lab → · Contrast checker → · Palette generator →

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